Question: A fruit is read from input into fruit _ input. String favorite _ fruits is output, followed by fruit _ input. Modify the string literal

A fruit is read from input into fruit_input. String favorite_fruits is output, followed by fruit_input. Modify the string literal assigned to favorite_fruits by adding newline characters (
) so that each fruit in favorite_fruits is separated by a newline instead of a space, and favorite_fruits ends with a newline.
Ex: If the input is grapes, then the output is:
peaches
raspberries
lemons
blackberries
grapes A fruit is read from input into fruit_input. String favorite_fruits is output, followed by fruit_input. Modify the string literal assigned to favorite_fruits by adding newline characters \((\mathrm{n})\) so that each fruit in favorite_fruits is separated by a newline instead of a space, and favorite_fruits ends with a newline.
Ex: If the input is grapes, then the output is:
```
peaches
raspberries
lemons
blackberries
grapes
```
```
fruit_input = input()
# Modify the string Literal below
favorite_fruits =
print(favorite_fruits, end='')
print(fruit_input)
```
A fruit is read from input into fruit _ input.

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 Programming Questions!