1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lelu [443]
2 years ago
14

Mad libs are activities that have a person provide various words, which are then used to complete a short story in unexpected(an

d 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.
​
Computers and Technology
1 answer:
Vsevolod [243]2 years ago
5 0

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

You might be interested in
Q Basic program write a program in Q Basic to find the cost of 10 pens when the cost of 15 pens is 75 use unitary method to find
Ne4ueva [31]

give the function of cpu

5 0
2 years ago
Rest or take a break every __ minutes when typing. Please help!
Talja [164]
Maybe like 3-5 I think im right
3 0
3 years ago
Read 2 more answers
Hat are three machines or devices that depend on gravity to work?
jonny [76]
Some devices that depend on gravity to function include scales, showers, and satellites, to list a few.
6 0
3 years ago
Gina wants to consistently format the headings in all of her worksheets.. . Which is a quick way to do so?. A)Format the heading
ziro4ka [17]
I'd say that if <span>Gina wants to consistently format the headings in all of her worksheets, the quickest way to do so is to B. right-click the sheet tab, select All Sheets on the shortcut menu, and then format the text in the active worksheet.
This way, she will include all the headings she wants to format. 
</span>
6 0
3 years ago
Given an array arr, of type int, along with two int variables i and j, write some code that swaps the values of arr[i] and arr[j
Inessa05 [86]

You'll need a helper variable for this, so depending on your programming language, the solution becomes:

int helper;

helper = arr[i];

arr[i] = arr[j];

arr[j] = helper;

3 0
2 years ago
Other questions:
  • What does AAC stand for?
    11·2 answers
  • Where will the CPU store data for easy access and quick retrieval during these computations?
    13·1 answer
  • Although heart rate increases and decrease depending upon activity level on average a typical person heart rate is about _____ b
    10·1 answer
  • In python,_______ are used to define the conditions necessary for a while loop to run.
    7·2 answers
  • ________ uses the signals transmitted over the phone to access the database, retrieve account information and input data. Group
    11·1 answer
  • Together with some anthropologists, you’re studying a sparsely populated region of a rainforest, where 50 farmers live along a 5
    15·1 answer
  • (Please answer both parts, please)
    8·2 answers
  • Help brainleist giving exam
    15·1 answer
  • besides entering a url to go directly to a website, what else can you enter in a browser address bar to explore the internet?
    10·1 answer
  • Please help with this question
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!