Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input("Please enter some text:")
- chars = ["t", "k", "r", "w", "q"]
- for char in chars:
- count = word.count(char)
- print(count)
- """
- count = word.count('t')
- print(count)
- word2 = word
- count = word2.count('k')
- print(count)
- word3 = word
- count = word3.count('r')
- print(count)
- word4 = word
- count = word4.count('w')
- print(count)
- word5 = word
- count = word5.count('q')
- print(count)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement