def get_key(dictionary, bit):
    '''get_key(list, bool)

    Create a key.
    Setup its values.
    Return the key.'''
    key = range(256)
    for item in dictionary:
        key[item[bit]] = item[not bit]
    return key
get_key(list, bool)

    Create a key.
    Setup its values.
    Return the key.
recipes/Python/440628_Encrypting_A_String/recipe-440628.py