Question: A fruit is read from input into fruit _ input. String shopping _ list is output, followed by fruit _ input. Modify shopping _ list

A fruit is read from input into fruit_input. String shopping_list is output, followed by fruit_input. Modify shopping_list so that each fruit in shopping_list is separated by a newline ((n), and shopping_list ends with a newline.
Ex: If the input is avocados, then the output is:
grapes
pears
blueberries
peaches
avocados
1 fruit_input = input ()
3 shopping_list =|'grapes pears blueberries peaches'
4
5 print(shopping_list, end='')
6 print(fruit_input)
 A fruit is read from input into fruit_input. String shopping_list is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!