Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Input
- cars = input("Cars: ")
- c = cars.split()
- # Counter Values (r counts red, b counts blue)
- r = 0
- b = 0
- # Red Values
- for i in c:
- if 'red' in c:
- r = + 1
- # Blue Values
- for i in c:
- if 'blue' in c:
- b = + 1
- # Printers
- print("blue: ", b)
- print("red: ", r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement