Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

how to do this in PYTHON.

Rocking-Rayquaza
Rocking-Rayquaza

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.

REGARDS,
rayquaza

2 years ago

Voters

Comments

TopNew
1
PattanAhmed
PattanAhmed

@ROCKINGRAYQUAZA
Hi,
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

2 years ago
1
Rocking-Rayquaza
Rocking-Rayquaza

thanks bro are you a proffessional coder or a [email protected]

2 years ago
1
PattanAhmed
PattanAhmed

@ROCKINGRAYQUAZA
Welcome!
I am a little bit professional in coding dude.
LoL
Anyways, Happy to help you!

2 years ago
1
HahaYes
HahaYes

@PattanAhmed
yes a bit professional smh

2 years ago
1
HahaYes
HahaYes

@PattanAhmed
BLATANT SPOONFEEDING STOP

2 years ago
1
Vandesm14
Vandesm14

@HahaYes
It's not spoonfeeding. Please stop reporting spoonfeeding altogether if you don't know what is and isn't spoonfeeding.

2 years ago
1
PattanAhmed
PattanAhmed

@Vandesm14
Thanks a lot...
This guy always accuses me by telling me spoonfeeding!
I have been accused 4 times publicly and I don't know what to do.
But, Thanks million times for your support.

2 years ago