Question: In this game, the programmer will pick a number from 1 to 20, and ask the user to guess the number. The computer will tell

In this game, the programmer will pick a number from 1 to 20, and ask the user to guess the number. The computer will tell you if your guess is to high or too low. The game ends when the user guesses the correct number. This is a good game for you to start with because it uses number,loops, decision statements, and input from the user in a fairly short program. As you write this game, you will learn how to convert calues to different data types (and why would you would need to do this). (Code needs to be a while loop and needs to be in python only.) The code should look like: Hello! what is your name? Cody Well, Jennifer, I am thinking of a number between 1 and 20. Take a guess 10 Your guess is too high. guess again 5 Good job, Jennifer! You guessed my number! You win!

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!