Guest User

correct

a guest
Jan 28th, 2020
273
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. action = input()
  2.  
  3. coffees = 0
  4.  
  5. action_to_lower = ['coding', 'movie', 'dog', 'cat']
  6. action_to_upper = ['CODING', 'MOVIE', 'DOG', 'CAT']
  7.  
  8. while action != 'END':
  9.  
  10.     if action in action_to_lower:
  11.         coffees += 1
  12.     elif action in action_to_upper:
  13.         coffees += 2
  14.  
  15.     action = input()
  16.  
  17.     if action == 'END':
  18.         if coffees > 5:
  19.             print('You need extra sleep')
  20.         else:
  21.             print(coffees)
RAW Paste Data