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
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