Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("SHOPPING LIST GENERATOR")
- shopping = []
- how_many = input("how many items of shopping do you have? ")
- how_many = int(how_many)
- for item_number in range(how_many):
- item = input("what is the item number " + str(item_number) + " ? ")
- shopping.append(item)
- print()
- print("This is the list :")
- for item in shopping:
- print (item)
- print("You have " + str(how_many) + " items in your shopping list.")
- print("")
- print(len(shopping))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement