So I\'m learning Python. I am going through the lessons and ran into a problem where I had to condense a great many target.write() into a single write()>
target.write()
write()>
if you just want to save and load a list try Pickle
Pickle saving:
with open("yourFile","wb")as file: pickle.dump(YourList,file)
and loading:
with open("yourFile","rb")as file: YourList=pickle.load(file)