0
How can I input list elements from keyboard?
2 Réponses
0
n=int(input("enter the limit of list))
list[]
for i in range(n):
list[i]=input("enter the value")
is this correct??
0
got it
n=int(input("limit"))
list1=[]
for i in range(n):
list1=list1+[input("item")]
is there any other option?