Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = input().split(" ")
- dictionary = {}
- for word in words:
- for letter in word:
- if letter not in dictionary:
- dictionary[letter] = 1
- else:
- dictionary[letter] += 1
- for key, value in dictionary.items():
- print(f"{key} -> {value}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement