Examveda
Examveda

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


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python