Question
Write a program in Python which: Project is called GUESSING GAME 1. Figure out how to output a random number. 2. Secondly ask the user
Write a program in Python which:
Project is called GUESSING GAME
1. Figure out how to output a random number.
2. Secondly ask the user to Enter a Number.
3. The player will have either 5 or 10 attempts to guess the lucky Random Number. **Please make sure the Random number is from either 0 to 20**
4. If the user guesses the correct number output a MESSAGE break out of the loop.
5. If the user guesses the wrong number while within the attempts OUTPUT a message from step #2.
6. If the user have exhaust all of the attempts OUTPUT a message "You Lose Go Home"(Use your creativity of what message to output.)
You are required to have:
1. If/else statements
2. Either a Do/while, while or For loop
3. You need comments as well.
4. Give the user a certain amount of seconds to guess the number.
5. Post an Error Message if the user enter characters instead of values.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started