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