Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Shopping List using for loop with counter modded to use "len90 function
- shopping = ["bread", "cheese", "milk", "weetabix", "wine"]
- ###count = 0
- for item in shopping:
- print(item)
- ### count = count + 1
- ###print("No. of items in basket : " + str(count))
- print("No. of items in basket : " + str(len(shopping)))
Advertisement
Add Comment
Please, Sign In to add comment