subject

Highlight the line that stops this from being an infinite loop. (Highlight one entire line.) secret = 45
choice = ""
while True:
choice = input("Choose a number (or type 'end'). ")
if choice == "end":
break
elif int(choice) > secret:
print("Your guess was too high!")
elif int(choice) < secret:
print("Your guess was too low!")
elif int(choice) == secret:
print("You got it! Picking a new number...")
secret = random. randint(1, 100)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Robots with telescoping arms are sometimes used to perform tasks (e.g., welding or placing screws) where access may be difficult for other robotic types. during a test run, a robot arm is programmed to extend according to the relationship r = 3 + 0.5cos(4θ) and the arm rotates according to the relationship θ=−π4t2+πt , where r is in feet, θ is in radians, and t is in seconds. use a computer program to plot the path of tip a in x and y coordinates for 0 ≤ t ≤ 4s.
Answers: 2
question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
You know the right answer?
Highlight the line that stops this from being an infinite loop. (Highlight one entire line.) secret...
Questions
question
Mathematics, 21.02.2020 17:03
Questions on the website: 13722360