Python – Use a button

Please sign up for the course before starting the lesson.

A button or switch is used to control the flow of electricity. A button is a type of switch that stays open (off) until it it is pressed.   A keyboard is a collection of buttons.  Each time you press a key the circuit is completed and a letter is typed. A light switch is an example of a switch.  It stays on or off depending on which way you set it.

Back to: Invent Circuits in Python (Basic)