import csv
import json
import pickle

with open("cars.csv", "w", newline='') as f:
    writer = csv.writer(f, delimiter=';')
    writer.writerow(["Model", "Year", "Horsepower", "Engine size"])
    writer.writerows([["80 1.6 Specs", 1989, 69, "1595 cm3 (97.3 cu-in)"],
                      ["80 1.6 Specs", 1993, 102, "1595 cm3 (97.3 cu-in)"],
                      ["80 1.8 Specs", 1986, 75, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.8 Specs", 1989, 90, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.8 S Specs", 1986, 88, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.9 E Specs", 1986, 113, "1847 cm3 (108.7 cu-in)"],
                      ["80 1.9 E Quattro Specs", 1986, 113, "1847 cm3 (112.7 cu-in)"],
                      ["80 2.0 16v Specs", 1992, 140, "1984 cm3 (121.1 cu-in)"],
                      ["80 2.0 16v Quattro Specs", 1990, 140, "1984 cm3 (121.1 cu-in)"]])

with open('cars.csv', 'r', newline='') as f:
    reader = csv.reader(f, delimiter=';')
    for row in reader:
        print(row)

with open('cars.csv', 'r', newline='') as f:
    reader = csv.DictReader(f, delimiter=';')
    row = list(reader)

with open('cars.json', 'w', newline='') as f:
    json.dump(row, f)

with open('cars.json', "r", newline='') as f:
    json_f = json.load(f)

with open("pickle.txt", "wb") as f:
    pickle.dump(json_f, f)

with open("pickle.txt", "rb") as f:
    pickle_l = pickle.load(f)

bf276694caba152b9d6a8bce45e538ade4f4d19e
<mask token>

<mask token>
with open('cars.csv', 'w', newline='') as f:
    writer = csv.writer(f, delimiter=';')
    writer.writerow(['Model', 'Year', 'Horsepower', 'Engine size'])
    writer.writerows([['80 1.6 Specs', 1989, 69, '1595 cm3 (97.3 cu-in)'],
        ['80 1.6 Specs', 1993, 102, '1595 cm3 (97.3 cu-in)'], [
        '80 1.8 Specs', 1986, 75, '1781 cm3 (108.7 cu-in)'], [
        '80 1.8 Specs', 1989, 90, '1781 cm3 (108.7 cu-in)'], [
        '80 1.8 S Specs', 1986, 88, '1781 cm3 (108.7 cu-in)'], [
        '80 1.9 E Specs', 1986, 113, '1847 cm3 (108.7 cu-in)'], [
        '80 1.9 E Quattro Specs', 1986, 113, '1847 cm3 (112.7 cu-in)'], [
        '80 2.0 16v Specs', 1992, 140, '1984 cm3 (121.1 cu-in)'], [
        '80 2.0 16v Quattro Specs', 1990, 140, '1984 cm3 (121.1 cu-in)']])
with open('cars.csv', 'r', newline='') as f:
    reader = csv.reader(f, delimiter=';')
    for row in reader:
        print(row)
with open('cars.csv', 'r', newline='') as f:
    reader = csv.DictReader(f, delimiter=';')
    row = list(reader)
with open('cars.json', 'w', newline='') as f:
    json.dump(row, f)
with open('cars.json', 'r', newline='') as f:
    json_f = json.load(f)
with open('pickle.txt', 'wb') as f:
    pickle.dump(json_f, f)
with open('pickle.txt', 'rb') as f:
    pickle_l = pickle.load(f)

import csv
import json
import pickle
with open('cars.csv', 'w', newline='') as f:
    writer = csv.writer(f, delimiter=';')
    writer.writerow(['Model', 'Year', 'Horsepower', 'Engine size'])
    writer.writerows([['80 1.6 Specs', 1989, 69, '1595 cm3 (97.3 cu-in)'],
        ['80 1.6 Specs', 1993, 102, '1595 cm3 (97.3 cu-in)'], [
        '80 1.8 Specs', 1986, 75, '1781 cm3 (108.7 cu-in)'], [
        '80 1.8 Specs', 1989, 90, '1781 cm3 (108.7 cu-in)'], [
        '80 1.8 S Specs', 1986, 88, '1781 cm3 (108.7 cu-in)'], [
        '80 1.9 E Specs', 1986, 113, '1847 cm3 (108.7 cu-in)'], [
        '80 1.9 E Quattro Specs', 1986, 113, '1847 cm3 (112.7 cu-in)'], [
        '80 2.0 16v Specs', 1992, 140, '1984 cm3 (121.1 cu-in)'], [
        '80 2.0 16v Quattro Specs', 1990, 140, '1984 cm3 (121.1 cu-in)']])
with open('cars.csv', 'r', newline='') as f:
    reader = csv.reader(f, delimiter=';')
    for row in reader:
        print(row)
with open('cars.csv', 'r', newline='') as f:
    reader = csv.DictReader(f, delimiter=';')
    row = list(reader)
with open('cars.json', 'w', newline='') as f:
    json.dump(row, f)
with open('cars.json', 'r', newline='') as f:
    json_f = json.load(f)
with open('pickle.txt', 'wb') as f:
    pickle.dump(json_f, f)
with open('pickle.txt', 'rb') as f:
    pickle_l = pickle.load(f)

import csv
import json
import pickle

with open("cars.csv", "w", newline='') as f:
    writer = csv.writer(f, delimiter=';')
    writer.writerow(["Model", "Year", "Horsepower", "Engine size"])
    writer.writerows([["80 1.6 Specs", 1989, 69, "1595 cm3 (97.3 cu-in)"],
                      ["80 1.6 Specs", 1993, 102, "1595 cm3 (97.3 cu-in)"],
                      ["80 1.8 Specs", 1986, 75, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.8 Specs", 1989, 90, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.8 S Specs", 1986, 88, "1781 cm3 (108.7 cu-in)"],
                      ["80 1.9 E Specs", 1986, 113, "1847 cm3 (108.7 cu-in)"],
                      ["80 1.9 E Quattro Specs", 1986, 113, "1847 cm3 (112.7 cu-in)"],
                      ["80 2.0 16v Specs", 1992, 140, "1984 cm3 (121.1 cu-in)"],
                      ["80 2.0 16v Quattro Specs", 1990, 140, "1984 cm3 (121.1 cu-in)"]])

with open('cars.csv', 'r', newline='') as f:
    reader = csv.reader(f, delimiter=';')
    for row in reader:
        print(row)

with open('cars.csv', 'r', newline='') as f:
    reader = csv.DictReader(f, delimiter=';')
    row = list(reader)

with open('cars.json', 'w', newline='') as f:
    json.dump(row, f)

with open('cars.json', "r", newline='') as f:
    json_f = json.load(f)

with open("pickle.txt", "wb") as f:
    pickle.dump(json_f, f)

with open("pickle.txt", "rb") as f:
    pickle_l = pickle.load(f)
