Advertisement
HBSB

3.6 display_shopping

Mar 4th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. shopping=["bread", "cheese", "apple", "tomato", "biscuits" ]
  2. for item in shopping:
  3.   print (item)
  4. #so I've not told it how many times to run, it just runs the complete list
  5. #each item is printed and then the program stops
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement