I am a python beginner. I am writing to a file as:
with open("Init", mode='w') as out:
out.write(datName)
out.write("\n")
out.write("T\n")
out.write(datGroup)
out.write("\n")
out.write(datLatx)
out.write(" ")
while this is working, it is looking bad (space and newline is separate write statement).
I read this page, but still no idea.
Is there a better way of doing this given out.write(datName"\n")
is invalid?