def append_csv_file(filename):
with open (filename, "a") as csv_file:
file_name = csv_file
appending = input("please enter the number of times you would like to enter "
"some text into the file on a different line: ")
appending = int(appending)
for appending in range(appending):
x = input("please enter what you would like to append: ")
file_name.write("\n" + x)
exit()
xxx = input("please enter the file you would like to append to the file: ")
print(append_csv_file(xxx))
how do i make this code append into a certain line