Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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 that takes a string and an integer as input, and outputs a sentence using the input values as shown in the example below. The program repeats until the input string is quit and disregards the integer input that follows.

Sagot :

The written program that repeats until the input string is quit and disregards the integer input that follows is; Written in the answer below

How to write specific programs in programming Language

We are not looping and as a result our program will only ask for input once, and end.

Thus, since we want to keep inputting data, and printing new words, then the program is as follows;

word = ""

while True:

   user_text = input().split()

   word = (user_text[0])

   if word == 'quit':

       break

       

   number = (user_text[1])

   print('Eating {} {} a day keeps the doctor away.'.format(number, word))

Read more about programming language at; https://brainly.com/question/8151764

Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.