Advertisement
Momtchil

Untitled

Jun 1st, 2025
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. word = input()
  2. coffee_needed = 0
  3. while word != "END":
  4.     coffee_needed = 0
  5.     word = input()
  6.     if word == "cat" or word == "dog" or word == "coding" or word == "movie":
  7.         coffee_needed += 1
  8.     if word == "CAT" or word == "DOG" or word == "CODING" or word == "MOVIE":
  9.         coffee_needed += 2
  10. if coffee_needed < 5:
  11.     print(coffee_needed)
  12. else:
  13.     print("You need extra sleep")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement