I am fairly new to python.
I want to read a csv file and store the content of as tuples. This is my code so far, however I can't figure out how to make the tuples:
import csv
with open('apple_finance.csv', 'r') as csv_file:
apple_reader = csv.reader(csv_file)
with open('new_apple_finance.csv', 'w', newline='') as new_file:
csv_writer = csv.writer(new_file, delimiter=',')
for line in apple_reader:
csv_writer.writerow(line)
Can someone help me?
Thank you.