Tom_Jung

Untitled

Jan 16th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. shopping = [ ]
  2. how_many = input('how many items of shopping do you have?')
  3. num = int(how_many)
  4. for item_number in range(num):
  5. item = input("what is the item number " + str(item_number) + " ?")
  6. shopping.append(item)
  7. print(shopping)
Advertisement
Add Comment
Please, Sign In to add comment