How can you read the entire contents of a file line by line in Python?
A. By using a for loop with the file object
B. By using the readlines() method on a file object
C. By using the readline() method on a file object
D. By using the line() function
Answer: Option B

Join The Discussion