Your friend has asked you to take a look at his code. You noticed one line is missing. What's the line?
import zipfile
books = zipfile.ZipFile('books.zip', 'r')
hamlet = books.open('hamlet.txt')
text = hamlet.read().decode('ascii')
print(text)Your friend has asked you to take a look at his code. You noticed one line is missing. What's the line?
import zipfile
books = zipfile.ZipFile('books.zip', 'r')
hamlet = books.open('hamlet.txt')
text = hamlet.read().decode('ascii')
print(text)Create a free account to access the full topic