Guess My Number! For the first part of you will write a program similar to the classic Guess My Number game. To start out, we'll play our game like Lotto (without giving money to winners) – the player...


Please explain the steps


Guess My Number!<br>For the first part of you will write a program similar to the classic Guess My Number game. To start out,<br>we'll play our game like Lotto (without giving money to winners) – the player has one chance to answer<br>with the correct number, and we'll provide some feedback on where they landed<br>Task Outline: Here is the general outline of what you need to do:<br>1. Generate and store a random number from 1 to 5 for you or your user to try to guess. You'll<br>need to use the import statement to import the random package and call the randint()<br>Here's an example: number = random.randint(1,5)<br>2. Ask the player their name and print an inviting message to get the game started<br>3. Ask the player for their guess. If the player's guess was less than the random number chosen<br>(i.e. they guessed too low), print a message telling them they guessed too low. If the player's<br>number was greater than the random number you generated (i.e. they guessed too high), print<br>a message telling them they guessed too high. If the player guesses the random number, print<br>a winning<br>

Extracted text: Guess My Number! For the first part of you will write a program similar to the classic Guess My Number game. To start out, we'll play our game like Lotto (without giving money to winners) – the player has one chance to answer with the correct number, and we'll provide some feedback on where they landed Task Outline: Here is the general outline of what you need to do: 1. Generate and store a random number from 1 to 5 for you or your user to try to guess. You'll need to use the import statement to import the random package and call the randint() Here's an example: number = random.randint(1,5) 2. Ask the player their name and print an inviting message to get the game started 3. Ask the player for their guess. If the player's guess was less than the random number chosen (i.e. they guessed too low), print a message telling them they guessed too low. If the player's number was greater than the random number you generated (i.e. they guessed too high), print a message telling them they guessed too high. If the player guesses the random number, print a winning

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here