Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- little_events = "coding,dog,cat,movie"
- big_events = little_events.upper()
- input_command = input()
- coffee_counter = 0
- while not input_command == "END":
- if input_command in little_events:
- coffee_counter += 1
- elif input_command in big_events:
- coffee_counter += 2
- if coffee_counter > 5:
- print("You need extra sleep")
- break
- input_command = input()
- else:
- print(coffee_counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement