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 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 02:50
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
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
Mathematics, 25.03.2021 21:30
question
Mathematics, 25.03.2021 21:30
question
Mathematics, 25.03.2021 21:30
Questions on the website: 13722363