13,420
edits
Changes
→PART 2 - Writing To Files
Line 1
Line 2 is a little longer
Line 3 is tooas well
</source>
::#Create another file but this time, run multiple write() methods together. The ability to write() multiple lines like this allows for writes to take place inside loops and more complex programs to continuously write to a file.<source lang="python">
Line 1
Line 2 is a little longer
Line 3 is tooas well
This is the 4th line
Last line in file