subject

I keep getting an infinite loop. Some help or hint would be greatly appreciated. Its a mad lib with loops. The loop has to stop when user inputs 'quit 0'. user_str = input()

stop = "quit 0"

while True:

s = user_str. split()[0]

n = int(user_str. split()[1])

if stop == "quit 0 ":

break

print(" Eating " + str(n) + " " + s + " a day keeps the doctor away.")

user_str = input()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
You know the right answer?
I keep getting an infinite loop. Some help or hint would be greatly appreciated. Its a mad lib with...
Questions
question
Chemistry, 24.09.2020 14:01
question
Mathematics, 24.09.2020 14:01
question
Mathematics, 24.09.2020 14:01
question
History, 24.09.2020 14:01