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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!