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 01:30
Consider the following statements: #include #include class temporary { private: string description; double first; double second; public: temporary(string = "", double = 0.0, double = 0.0); void set(string, double, double); double manipulate(); void get(string& , double& , double& ); void setdescription(string); void setfirst(double); void setsecond(double); }; write the definition of the member function set() so that the instance variables are set according to the parameters. write the definition of the constructor so that it initializes the instance variables using the function set() write the definition of the member function manipulate() that returns a decimal number (double) as follows: if the value of description is "rectangle", it returns first * second if the value of description is "circle" it returns the area of a circle with radius first if the value of description is "cylinder" it returns the volume of a cylinder with radius first and height second. hint: the volume of a cylinder is simply the area of the circle at the base times the height. if the value of description is "sphere" it returns the volume of the sphere with radius first. otherwise it returns -1.0;
Answers: 1
question
Computers and Technology, 22.06.2019 03:00
How can i clip a picture to a question on the computer?
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
You know the right answer?
Highlight the line that stops this from being an infinite loop. (Highlight one entire line.) secret...
Questions
question
Physics, 27.11.2020 21:10
question
Mathematics, 27.11.2020 21:10
question
Chemistry, 27.11.2020 21:10
Questions on the website: 13722363