LPTHW Day 3

23 Apr 2019

Today’s Progress

target = open((filename, 'w')
target.truncate()

Thoughts: Truncate() was not familiar to me. In the exercise the use of target.truncate() to clear out the current data in a text file before we added our own new data with target.write. There’s so many things you can do with files and methods.

Link to work: exercises 16-17