Computers and Technology

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)

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 22.06.2019 15:30, mariap3504
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
Do you know the correct answer?
Highlight the line that stops this from being an infinite loop. (Highlight one entire line.) secret...

Questions in other subjects:

Konu
Mathematics, 11.05.2021 21:10
Konu
Biology, 11.05.2021 21:10
Konu
Mathematics, 11.05.2021 21:10