Answered step by step
Verified Expert Solution
Link Copied!

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: 1. Use random.randint(a,b) to generate a random number 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 is greater than zero but less than or equal to 1000.3. Use a while statement to give an indication if the number is higher or lower than the guess. 4. The process repeats until the number is guessed or the player types quit. Hint 1: You need an initial guess (guess=0) to initiate your while statement. Hint 2: You need two if statements: the first one is to deal with the game quitters Hint 3: Your conditional while statement should compare the number generated to the current guess with three possible outcomes: high, low or just right. Hint4: 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions