subject

Mad libs are activities that have a person provide various words, which are then used to complete a short story in unexpected(and hopefully funny) ways. Write a program to take the string and integer as input, and outputs the sentence using those items as below.

Def main():
Fields=input().split(' ')
While fields[0].lower()!='quit':
Print('eating {} {} a day keeps the doctor away.'.format(fields[1],fields[0]))
Fields = input().split(' ')

Can't seem to get the code to give me an output.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
You know the right answer?
Mad libs are activities that have a person provide various words, which are then used to complete a...
Questions
question
Mathematics, 06.04.2020 13:53
question
Social Studies, 06.04.2020 13:56
question
Mathematics, 06.04.2020 13:56
question
Biology, 06.04.2020 13:57
question
Mathematics, 06.04.2020 13:59
question
Mathematics, 06.04.2020 14:00
question
Mathematics, 06.04.2020 14:00
Questions on the website: 13722359