Computer Science, asked by rachnadass263, 4 months ago

Write a program to input and print the names of your family members ( use for loop)

Answers

Answered by allysia
1

Answer:

Here you go,

_____________________________________________

n=int(input("Enter the no. of members whose name you wanna enter: "))

b=[]

for i in range(0,n):

       a=input("Enter the name: ")

        b.append(a)

for j in b:

    print(j)

_____________________________________________

Answered by jai696
2

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

for name in (names := input("enter names: ").split()):

print(name)

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions