import csv


def csv_to_list(filename: str) -> list:
    """Receive an csv filename and returns rows of file with an list"""
    with open(filename) as csv_file:
        reader = csv.DictReader(csv_file)
        csv_data = [line for line in reader]
    return csv_data