Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input_str = input()
- input_str = input_str.lower()
- input_str = input_str.replace(" ","")
- dictionary = {}
- for data in input_str:
- if data in dictionary.keys():
- dictionary[str(data)]+=1
- else:
- dictionary[str(data)]=1
- print(dictionary)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement