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