def flatten_list(l):
    """Flatten a multidimensinoal list to a 1 dimensional list.

    Parameters:
    l (list): The list that you want to flatten.

    Returns:
    list: ! dimensional list.
    """
    try:
        return flatten_list(l[0]) + (flatten_list(l[1:]) if len(l) > 1 else []) if type(l) is list else [l]
    except IndexError:
        return []