I'm a beginner with python so you can think that am i asking a stupid question, but i really can't understand why mine function is removing previous data in csvfile instead of adding new in to this file. That's how it looks like:
def writein():
with open('employee data.csv', 'w') as employeeData:
writeby = csv.writer(employeeData, delimiter = ',')
writeNEN = input('Add name of new emp: \n')
writeNESN = input('Add surname of new emp: \n')
writeNEP = input('Add position of new emp: \n')
writeNEBD = input('Add date of birth of new emp: \n')
writeby.writerow([writeNEN, writeNESN, writeNEP, writeNEBD])
Have you guys any idea how to make program adding new data instead of replacing it?