Need help to understand code Can someone please answer why am getting none when I print hand
s='hellothisisawesomeharpreet'
newdic={}
for i in s:
newdic[i]= newdic.get(i,0)+1
print newdic
def display_hand(newdic):
for letter in newdic.keys():
for j in range(newdic[letter]):
print letter,
hand = display_hand(newdic)
print hand
{'a': 2, 'e': 5, 'i': 2, 'h': 3, 'm': 1, 'l': 2, 'o': 2, 'p': 1, 's': 3,
'r': 2, 't': 2, 'w': 1}
a a e e e e e i i h h h m l l o o p s s s r r t t w None