Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- colours = ['White','Tan', 'Yellow','Orange', 'Red', 'Pink','Purple','Blue','Red','White', 'Tan', 'Yellow', 'Orange', 'Red', 'Pink','Purple','Blue' ]
- for mycolor in colours:
- if mycolor == 'Red':
- count += 1
- print("{0} red colours in this colours set ".format(count))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement