I have a python file where I get user inputs for student database and I have written them as a csv file. I couldn't get the links in google to read the csv output and write those csv output to a text file.
Sample Csv output:
Name Roll no Age Mark1 Mark2
a 1 2 3 4
g 3 54 54 3
import csv
with open('abc.csv','r') as f:
reader=csv.dictreader(f)
for row in reader:
output=('xyz.txt','r')
I know how to read a csv file but I don't know how to write those contents to a text file