Hi,
I want to defining a loop (i.e if) that can start/stop when I press a key like 1,2 on keyboard. For instance, when i press the "1" key without enter, loop' should begin at that time. I'll run this loop with Raspberry Pi.
How can we codded as suitable? Which module can be useful for my problem?
I want to defining a loop (i.e if) that can start/stop when I press a key like 1,2 on keyboard. For instance, when i press the "1" key without enter, loop' should begin at that time. I'll run this loop with Raspberry Pi.

How can we codded as suitable? Which module can be useful for my problem?
