def txt_to_list(txt_path):
    """ Load text file as list

    Parameters
    -------
    txt_path: str
        text file path

    Returns
    -------
    data_list: list
        data represented as python list

    """

    with open(txt_path, 'r') as file:
      data_list = [line.rstrip('\n') for line in file]

    return data_list