I am writing a program where I want to implement that you have to press "any key to continiue", I did that by using command input()
, but the problem with this is, when you run the code, you have to press any key and then enter afterwards. Is there a command similar to input()
where you don't have to press enter afterwards?
The code I wrote:
...
TimeLoop = False
start_timer = input("Press any button to start ")
if start_timer != 3:
TimeLoop = True
else:
TimeLoop = True
while TimeLoop:
...