0

How can I input list elements from keyboard?

3rd Jan 2017, 12:44 PM
jakt
jakt - avatar
2 Answers
0
n=int(input("enter the limit of list)) list[] for i in range(n): list[i]=input("enter the value") is this correct??
4th Jan 2017, 3:47 AM
jakt
jakt - avatar
0
got it n=int(input("limit")) list1=[] for i in range(n): list1=list1+[input("item")] is there any other option?
4th Jan 2017, 7:33 AM
jakt
jakt - avatar