zhongnaomi

make a shopping list with python 2

Jan 7th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. shopping =[]
  2.  
  3. for item_number in range(5):
  4.     item = input ( "What is the No." + str(item_number+1) + " item to buy today? " )
  5.     shopping.append(item)
  6.    
  7. print(shopping)
Add Comment
Please, Sign In to add comment