cara menghasilkan file txt dari daftar python
a_list = ["abc", "def", "ghi"]
textfile = open("a_file.txt", "w")
for element in a_list:
textfile. write(element + "\n")
textfile. close()
mahamudul hasan