Question 1 of 9
Which statement correctly distinguishes ZipFile.write() from ZipFile.writestr()?
One function reads a local file; the other is given the member content.
write() stores an existing file. writestr() accepts str or bytes and associates it with an archive member name.
Review this lesson