Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python lists

mylist = []  # creating an empty list

# appending values entered by user to list
for i in range(5):
    print("Enter value of n[", i, "]")
    mylist.append(input())

# printing final list
print(mylist)
Source by www.codesdope.com #
 
PREVIOUS NEXT
Tagged: #python #lists
ADD COMMENT
Topic
Name
2+7 =