The Worst Number-Guessing Game Ever¶
Write a program that plays an incredibly silly number-guessing game. The user will get one try to guess the secret number. Tell them if they got it right or wrong, and if they got it wrong, display what the secret number was.
You must store the secret number in a variable, and use that variable throughout. The secret number itself must not appear in the program at all, except in the one line where you store it into a variable.
I know it will be the same number every time the game is played.
Name your file: worst_guessing_game.py
TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!
I"M THKING OF A NBR FROM 1-10. TRY 2 GESS! 3
W00T! U SUX0R!!! I PWN J00!!! IT WAS 4!
TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!
I"M THKING OF A NBR FROM 1-10. TRY 2 GESS! 4
LOL!!! U GOT IT! I CANT BELEIVE U GESSED IT WAS 4!
TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!
I"M THKING OF A NBR FROM 1-10. TRY 2 GESS! 4
LOL!!! U GOT IT! I CANT BELEIVE U GESSED IT WAS 4!
TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!
I"M THKING OF A NBR FROM 1-10. TRY 2 GESS! 4
LOL!!! U GOT IT! I CANT BELEIVE U GESSED IT WAS 4!
🙄🤦
©2021 Daniel Gallo
This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Adapted for Python from Graham Mitchell’s Programming By Doing