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