Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopping_list = []
- how_many = input( "How many items of shopping are needed ? ")
- how_many = int(how_many)
- for items in range (how_many):
- items = input(" what is the item " + str(how_many) + " ?")
- shopping_list.append(items)
- print (shopping_list)
- print ("an other type of list: ")
- for item in shopping_list:
- print (item)
- print (" I have " + str(len(shopping_list)) + " items in my shopping list")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement