Advertisement
anton_d

04. Sum Of A Beach

May 22nd, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. sentence = input().lower()
  2.  
  3. words = ['sand', 'water', 'fish', 'sun']
  4. counter = 0
  5.  
  6. for item in words:
  7.     if item in sentence:
  8.         counter += 1
  9.  
  10. print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement