Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help in PYTHON Write a python script that uses a while statement to create a number guessing game: 1 . Use random.randint ( a
please help in PYTHON Write a python script that uses a while statement to create a number guessing game: Use random.randintab to generate a random number between a and b You will also need to add an import random command at the start. Ask a player to enter a number integer to be guessed. The number is greater than zero but less than or equal to Use a while statement to give an indication if the number is higher or lower than the guess. The process repeats until the number is guessed or the player types quit. Hint : You need an initial guess guess to initiate your while statement. Hint : You need two if statements: the first one is to deal with the game quitters Hint : Your conditional while statement should compare the number generated to the current guess with three possible outcomes: high, low or just right. Hint: Use the command break to end the game when you win and when you quit.I want to write in python guessing game using letters my word us "wisdom"
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