Advertisement
Pedroleon

display_shopping

Jan 12th, 2019
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. shopping = ["bread", "cheese", "apple", "tomato", "biscuits"]
  2. count = 0
  3.  
  4. for item in shopping:
  5. print(item)
  6. count = count + 1
  7. count1= str(count)
  8. print("You have " + count1 + " items in your shopping list.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement