It is my code:
mylist = [['fiss','giss'], ['e','h'], ['d','u'], ['c','t'], ['b','o'], ['a','z']] for alist in mylist: g = ' '.join(alist) print g f = open("write.txt", "w") f.write(g) f.close()
How will I write all the words in the txt file. it is only writing the last line of the file.
Thanks in advance