A diode is an electronic component which allows the electric current flow one way, and not the other. It is often represented as an upper case D on diagrams. A diode has a positive side called the Anode, and a negative side called the Cathode.

In order to showcase this, I created a circuit on a breadboard, made up of two buttons, two resistors, and two LEDs. The goal is to connect the parts in such a way, so that when button one is pressed, both of the LEDs light up. When the second button is pressed, only one of the lights would light up. Connecting the two LEDs together did not solve the problem.

This is where the diode comes in. By connecting it between the lights, we can make sure that it stops the current from flowing to LED 1, when we press the second button. (See above)