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, 21.06.2019 18:00
Which of the following is a true statement about milestones
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
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 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
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
Geography, 01.10.2019 07:30
question
German, 01.10.2019 07:30
question
Mathematics, 01.10.2019 07:30
question
Physics, 01.10.2019 07:30
question
Advanced Placement (AP), 01.10.2019 07:30
Questions on the website: 13722363