Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do this in python using While-loop 1) The challenge in this task (to pass) is to compare the secret number with the entered value. The
Do this in python using While-loop
1) The challenge in this task (to pass) is to compare the secret number with the entered value. The code must repeat the input until you guess correctly. It's okay to use a bool variable to indicate when the numbers are equal.
2) But it gets even better if you compare the numbers directly against each other in the while statement. The program must also keep track of how many times the code has been repeated and you can enter a code that ends the game after ten guesses
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