def frequencies(word_list):
    assert(type(word_list) is list), "I need a list!"
    assert(word_list <> []), "I need a non-empty 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
dataset/ETHPy150Open crista/exercises-in-programming-style/21-tantrum/tf-21.py/frequencies/swapped operands of `in`