Im trying to append user inputted data to rows , however im having no luck.
Counter is a user defined global variable which i have created elsewhere in the code.
when the data is appended, instead of moving to another line it just rewrites the same line over and over and as a new user of python i have no idea what im doing wrong.
def AppendCsv():
NumberOfNamesToBeAdded()
with open ('Graph.csv', 'a') as graphFile:
graphFileWriter=csv.writer(graphFile)
for x in counter:
graphFileWriter.writerow([ID, Name,Cost,Date1])