Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sentence = input().lower()
- words = ['sand', 'water', 'fish', 'sun']
- counter = 0
- for item in words:
- if item in sentence:
- counter += 1
- print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement