Advertisement
bl00dt3ars

05. How Much Coffee Do You

May 22nd, 2021
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. counter = 0
  2.  
  3. command = input()
  4.  
  5. while command != "END":
  6.     if command == "dog" or command == "cat" or command == "movie" or command == "coding":
  7.         counter += 1
  8.     elif command == "DOG" or command == "CAT" or command == "MOVIE" or command == "CODING":
  9.         counter += 2
  10.     if counter > 5:
  11.         print("You need extra sleep")
  12.         break
  13.    
  14.     command = input()
  15.    
  16. else:
  17.     print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement