I've been trying to make a stopwatch that my peers have challenged me to build, but I want it to be able to stop the timer when I type in a certain key into the python shell.
import time
timer = 0
timeTrueFalse = True
startTimer = input("Type start if you want to start!")
if (startTimer == "start"):
while timeTrueFalse:
timer = (timer + 1)
print (timer)
time.sleep(1)