Writelignes Python

of = open("test_file.txt", "w")
list_elem = ["test", "test2"]
of.writelines(list_elem)
of.close()
Uptight Unicorn