Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input().upper()
- while s:
- if s == '#':
- break
- # s[0] is the letter
- output = 0
- for ss in s[1:]:
- if ss == s[0]:
- output += 1
- print(output)
- s = input().upper()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement