Respuesta :
Answer:
Statement given below in Python
Explanation:
if __name__ == '__main__':
user_input = input()
while True: //while loop for splitting input
item = user_input.split()[0]
item_count = int(user_input.split()[1])
if item.lower() == "quit":
break //ends the loop
print("Eating " + str(item_count) + " " + item + " a day keeps the doctor away.")
user_input = input()
Answer:
user_input = input()
#Split the user input
#to obtain the input
#string and integer in
#the form of a list.
input_list = user_input.split()
while True:
#Get the input string
#from the list.
input_string = input_list[0]
#If the input string
#is quit then, break the loop.
if input_string == "quit":
break
#Otherwise, move
#to the else case.
else:
#Get the input
#integer from the list.
input_integer = int(input_list[1])
print("Eating "+str(input_integer)+ " "+input_string+" a day keeps the doctor away.")
#Read and store
#the user input.
user_input = input()
#Split the user input
#to obtain the input
#string and integer in
#the form of a list.
input_list = user_input.split()
Explanation: