Answered step by step
Verified Expert Solution
Question
1 Approved Answer
paython Write a program that asks the user from the prompt to guess a secret number. Your secret number is 5. If the user guesses
paython Write a program that asks the user from the prompt to guess a secret number. Your secret number is 5. If the user guesses the number you can congratulate them. If they don't guess it, you should tell them if they need to guess higher or lower, and prompt them to enter another number. Hints: 1) The first 3 lines of the code is given in the box below. 2) If the guess is equal to the secret number, change the keepgoing to False. (keepgoing = False will stop the while loop) 3) Precheck is free again. For example: Input Result 3 7 5 Guess a number between 1 and 10: 3 Too low Guess a number between 1 and 10: 7 Too high Guess a number between 1 and 10: 5 Congrats
paython
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