#Add dependencies
import csv
import os
## Assign a variable to load a file from a path
file_to_load = os.path.join("Election-Analysis/election_results.csv")
# Create a filename variable to a direct or indirect path to the file.
file_to_save = os.path.join("Election-Analysis", "election_analysis.txt")
## Using the with statement open the file as a text file.
with open(file_to_load, "r") as election_data:
    # Read the file object with the reader function.
    file_reader = csv.reader(election_data)
    #Print the header row
    headers = next(file_reader)
    print(headers)
e49dc5aa9d46c71ea41963df42d4cf5ca5f7c61d
<mask token>

<mask token>
with open(file_to_load, 'r') as election_data:
    file_reader = csv.reader(election_data)
    headers = next(file_reader)
    print(headers)

<mask token>
file_to_load = os.path.join('Election-Analysis/election_results.csv')
file_to_save = os.path.join('Election-Analysis', 'election_analysis.txt')
with open(file_to_load, 'r') as election_data:
    file_reader = csv.reader(election_data)
    headers = next(file_reader)
    print(headers)

import csv
import os
file_to_load = os.path.join('Election-Analysis/election_results.csv')
file_to_save = os.path.join('Election-Analysis', 'election_analysis.txt')
with open(file_to_load, 'r') as election_data:
    file_reader = csv.reader(election_data)
    headers = next(file_reader)
    print(headers)

#Add dependencies
import csv
import os
## Assign a variable to load a file from a path
file_to_load = os.path.join("Election-Analysis/election_results.csv")
# Create a filename variable to a direct or indirect path to the file.
file_to_save = os.path.join("Election-Analysis", "election_analysis.txt")
## Using the with statement open the file as a text file.
with open(file_to_load, "r") as election_data:
    # Read the file object with the reader function.
    file_reader = csv.reader(election_data)
    #Print the header row
    headers = next(file_reader)
    print(headers)