Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopping = []
- count= 0
- shopping_items=int(input("How many items in your shopping list?" ))
- for item_number in range(shopping_items):
- item = input("what is item number " + str(shopping_items) + "? ")
- shopping.append(item)
- count= count +1
- output = str(count)
- print(shopping)
- print("You have " + output + " items in your shopping list.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement