def main(): prompt = 'enter a string : ' string = raw_input(prompt) hist = ex_11_2.histogram(string) print hist inv = invert_dict(hist) print inv
def main(): prompt = 'enter a string : ' string = raw_input(prompt) hist = ex_11_2.histogram(string) print hist if has_duplicates(hist): print 'duplicates available' else: print 'no more duplicates'
def main(): prompt = 'enter a string : ' string = raw_input(prompt) dictionary = ex_11_2.histogram(string) print_hist(dictionary)
def main(): h = ex_11_2.histogram('torretto') print reverse_lookup(h, 3)