The Logic gates are electronic components used in the digital electronics to handle logical functionality. The logic gate is an electronic circuit used in the ALU to compute a function on a two valued signal. Logic gates are the basic building block of digital circuits. The logic gates accept two inputs and produce one output. Some logic gates like NOT gate has only one input and one output. The logic gate being a digital electronic component,  can handle inputs only in the binary format (only low 0, or high 1) by receiving the input voltage.