Reading Files Quiz
Question 1 of 70% Complete
Which method is most memory-efficient for processing very large files line by line?
file.read().split('\n')
file.readlines()
for line in file:
list(file)
Which method is most memory-efficient for processing very large files line by line?
file.read().split('\n')
file.readlines()
for line in file:
list(file)