I'm trying to find a way to say Press any key to continue
, and the user can press any key on their keyboard to continue the program. I'm currently using input("Press Enter to continue")
, but this is not optimal for my project.
How can I make Python wait for any key to be pressed?