hw8.py
def histogram(lst):lst
to a string of asterisks representing its frequency.get() in your
solution.
>>> histogram(['abc', 'def', 'ghi', 'abc', 'ghi', 'abc'])
{'abc': '***', 'ghi': '**', 'def': '*'}
def unique(lst):lst with all duplicates removed.>>> unique(['abc', 'def', 'ghi', 'abc', 'ghi', 'abc']) ['abc', 'ghi', 'def']
def wordLengths(words): Given a list of words, return a Dictionary with each word as a key and the length of the word as its value.
def fileLengths(files): Given a list of filenames, return a Dictionary with each filename as a key and a tuple containing the number of characters, words, and lines in the file as its value. Feel free to use any appropriate functions from the previous assignment to help.
def strings2points(strings): Given a list of strings containing two coordinates separated by a space, return a Dictionary with each of the first numbers as a key and each of the second numbers as its value. Use a dictionary comprehension in your implementation.
def splitUp(d): Given any dictionary, return two lists: one containing all the keys, the other containing all the values.
def stumble3(width, height): Reimplement stumble2() using a dictionary instead of a two-dimensional list.
def spell_checker(filename):