Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add input to list python


shopList = [] 
maxLengthList = 6
while len(shopList) < maxLengthList:
    item = input("Enter your Item to the List: ")
    shopList.append(item)
    print shopList
print "That's your Shopping List"
print shopList

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #add #input #list #python
ADD COMMENT
Topic
Name
2+7 =