Skip to content
Advertisement

Tag: readkey

readkey command in python

I want my Python program to stop and wait until any key is pressed, then to print the key that was just pressed. It’s like the Pascal’s command key := readkey; writeln(key);. I’ ve tried yet to use the msvcrt module and the getch command but it didn’ t work. I tried this: And it didn’ t wait I pressed

Advertisement