228k views
23 votes
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.


User Adprocas
by
2.9k points

1 Answer

2 votes

did you just put random a*s word together and expect us to know the ¨answer¨

User Odiseo
by
3.5k points