import pprint
text = 'Welcome to the LearnPython.org interactive Python tutorial. ' \
'Whether you are an experienced programmer or not, ' \
'this website is intended for everyone who wishes to learn the Python programming language. ' \
'You are welcome to join our group on Facebook for questions, discussions and updates. ' \
'Just click on the chapter you wish to begin from, and follow the instructions. Good luck!'
counts = {}
for char in text:
counts.setdefault(char, 0)
counts[char] = counts[char] + 1
pprint.pprint(counts)