Advertisement
Nenogzar

Untitled

Jan 21st, 2024
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. text = input().lower()
  2. words = ["sand", "water", "fish", "sun"]
  3. print(sum([text.count(word) for word in words]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement