def in_dict(key, dictionary):
    """
    Inputs:     key- the key to be checked for in the dictionary
                dictionary- the dictionary the key will be searched in
                
    Checks a dictionary to see if it contains a key. If it does, True is 
    returned; False is returned otherwise.
    """
    keys = list(dictionary)

    for each in keys:
        if each == key:
            return True

    return False