import csv


def read_csv(file):
    csv_file = open(file)
    reader = csv.reader(csv_file)
    alpha = list(reader)
    csv_file.close()
    return alpha


def write_csv(file, method, content):
    csv_file = open(file, method, newline='')
    fieldnames = content[0]
    writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
    writer.writeheader()
    writer.writerows(content)
    print('created csv file')
    csv_file.close()

9a44eeb3a1f6b5c386a878a9c10c1ddc6c7c8376
<mask token>

<mask token>


def write_csv(file, method, content):
    csv_file = open(file, method, newline='')
    fieldnames = content[0]
    writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
    writer.writeheader()
    writer.writerows(content)
    print('created csv file')
    csv_file.close()

<mask token>


def read_csv(file):
    csv_file = open(file)
    reader = csv.reader(csv_file)
    alpha = list(reader)
    csv_file.close()
    return alpha


def write_csv(file, method, content):
    csv_file = open(file, method, newline='')
    fieldnames = content[0]
    writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
    writer.writeheader()
    writer.writerows(content)
    print('created csv file')
    csv_file.close()

import csv


def read_csv(file):
    csv_file = open(file)
    reader = csv.reader(csv_file)
    alpha = list(reader)
    csv_file.close()
    return alpha


def write_csv(file, method, content):
    csv_file = open(file, method, newline='')
    fieldnames = content[0]
    writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
    writer.writeheader()
    writer.writerows(content)
    print('created csv file')
    csv_file.close()
