I want to use a function to add a row of information to an existing csv file.
friend_info
will be a tuple including [name, address, phone, DOB]
I have this code
def add_friend(friend_info, friends_list):
with open(friends_list, 'a') as fapp:
writer = csv.writer(fapp)
writer.writerow(friend_info)
for some reason this code is adding to the last line of the csv (I want it to start on a new line)