boris-vlasenko

сколько раз встречается символ

Nov 16th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. s = input()
  2. c = input()
  3. k = 0
  4. for x in s:
  5.     if x == c:
  6.         k += 1
  7. print(k)
Advertisement
Add Comment
Please, Sign In to add comment