the first structure:
dic = {'l':2, 'o':3, 'p':6}
for key in dic:
total = [dic[key]]
print max(total)
the output is 6
second structure:
dic = {}
print 'Enter line of text'
line = input('')
words = line.split()
print 'Words', words
print 'Counting'
for word in words:
dic[word] = dic.get(word,0) + 1
print 'Dictionary of your text', dic
for num in dic:
total = [dic[num]]
print max(total)
output is 1 and mostly 1