I can append new texts but cant get newline
I tried adding newline to the hello world but instead of new line it just simply add my first line and hello world to the previous line.
myfile=open("test.txt","a")
myfile.write("\nhello world")
myfile.close()
my first line
hello world