a = 'have a nice day' symbol = 'abcdefghijklmnopqrstuvwxyz' for key in symbol: print(key, a.count(key))