Q. How to read a file line by line using a loop?
β
Correct Answer: (A)
for line in file
Explanation: Using a for loop is the recommended way to read line by line.