<human>:  What is a good Python function to write one line last line.
<bot>: Here is a Python function to write one line last line

import os

def write_one_line_last_line(file_name, line):
  """
  Write one line last line.
  """
  with open(file_name, 'a') as f:
    f.write(line)
    f.write('\n')

# Enter the file name
file_name ="purple skateboard"

# Calling the function
print((write_one_line_last_line(file_name, "Hello World")))

#Example Output
# None

#Remember to inspect code for bugs.