In this video I show you how to easily write to text files in python. This is especially useful for instances where you are running a script indefinitely, and you want to log everything that happens, so that if the program quits and restarts itself, you know where you left off.
P.S. Please comment below if you like my new type of programming tutorials...?
Intro - 0:00
Getting started - 0:15
Writing to a file - 1:00
Appending - 1:32
Adding a new line - 1:52
Using a for loop and append to make 10 lines - 2:06
End - 2:30