Write a program to input and print the names of your family members ( use for loop)
Answers
Answered by
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
2
for name in (names := input("enter names: ").split()):
print(name)
Similar questions