Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Python coding! Please include code, and also the Python Shell of the code working! Thank you! Need help getting this to work using
Please use Python coding! Please include code, and also the Python Shell of the code working! Thank you! Need help getting this to work using "WHILE-LOOPS".
Python: Number Guessing Game Write a python script that uses a while statement to create a number guessing game: aisu neean to add adint20b to gener ate a random nu mbrr between a-1 and b-1000. You will also need to add an import random command at the start. 2. Ask a player to enter a number (integer) to be guessed. The number should be greater 3. Use a while statement: continue until the 4. give an indication if the number is higher or lower than the guess. 5. Steps 2-4 repeat until the number is guessed or the player types quit. Hint 1: Create a done variable, initialized to O. Set done to 1 when time to end the game ("Quit or number match). Hint 2: while (not done) Hint 3: Use a nested if statement (1) deal with "quit", (2) is the guess correct?, (3) is the guess too high?, (4) is the guess too lowStep 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