how to append data to csv file in python without replacing the already present text
import csv
row =['Eric', '60']
with open('people.csv','a') as csvFile: #a to append to existing csv file
writer = csv.writer(csvFile)
csvFile.write("
") #write your data to new line
writer.writerow(row)
csvFile.close()