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