Advertisement
Spocoman

05. How Much Coffee Do You Need?

Jan 15th, 2022
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. command = input()
  2. counter = 0
  3.  
  4. while command != 'END':
  5.     if command in ['coding', 'movie', 'dog', 'cat']:
  6.         counter += 1
  7.     elif command in ['CODING', 'MOVIE', 'DOG', 'CAT']:
  8.         counter += 2
  9.     command = input()
  10.  
  11. print('You need extra sleep' if counter > 5 else counter)
  12.  
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement