Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- action = input()
- coffees = 0
- counter = 0
- action_to_lower = ['coding', 'movie', 'dog', 'cat']
- action_to_upper = ['CODING', 'MOVIE', 'DOG', 'CAT']
- while action != 'END':
- counter += 1
- if action in action_to_lower:
- coffees += 1
- elif action in action_to_upper:
- coffees += 2
- action = input()
- if counter < 5:
- print(coffees)
- else:
- print('You need extra sleep')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement