def frequencies(word_list):
    """
    Takes a list of words and returns a dictionary associating
    words with frequencies of occurrence
    """
    if type(word_list) is list and word_list <> []:
        word_freqs = {}
        for w in word_list:
            if word_freqs in w:
                word_freqs[w] += 1
            else:
                word_freqs[w] = 1
        return word_freqs
    else:
        return {}
dataset/ETHPy150Open crista/exercises-in-programming-style/34-the-c-flow/tf-34.py/frequencies/swapped operands of `in`