how to do this in PYTHON.
Recently i have been working on a game but i want to add a feature in it that when the game intro is on display ..I will print something like "PRESS ENTER"and until the user presses the enter key the program should not function so is there a way to do that?
any help would be appreciated..
and if you have any suggestions or comments about the game please provide them in the comments.
You can keep an If Statement like this:-
blank = '' input = input('Press Enter') if input == blank print('hello') elif input != blank: print('Please press Enter') else: print('An Error occured.\nPress Enter')
Now the main thing is to change this example to your code in the correct part.
For that, Try your best.
With my best wishes
Hope this helps
Please mark my answer if this helps