Character Frequency in a String

Write a code that takes a string as input and returns a dictionary with the frequency of each character (excluding spaces).
hello
Total : 0 Discussion
Login