Question: A name is read from input into name _ input. String my _ friends is output, followed by name _ input. Modify my _ friends

A name is read from input into name_input. String my_friends is output, followed by name_input. Modify my_friends so that each name in my_friends is separated by a newline ((n), and my_friends ends with a newline.
Ex: If the input is Ali, then the output is:
Sam
Van
Jay
Seb
Ali
name_input = input ()
my_friends =|'Sam Van Jay Seb'
print(my_friends, end='')
print(name_input)
 A name is read from input into name_input. String my_friends 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!