Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input()
- coffee_needed = 0
- while word != "END":
- coffee_needed = 0
- word = input()
- if word == "cat" or word == "dog" or word == "coding" or word == "movie":
- coffee_needed += 1
- if word == "CAT" or word == "DOG" or word == "CODING" or word == "MOVIE":
- coffee_needed += 2
- if coffee_needed < 5:
- print(coffee_needed)
- else:
- print("You need extra sleep")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement