Generation

generate functionMon, 09 Jan 2023

read in csv file with file name "transactions.csv" and print out the result

import csv def read_csv(name): with open(name, 'r') as f: reader = csv.reader(f) for row in reader: print(row) read_csv("transactions.csv")

Questions about programming?Chat with your personal AI assistant