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