Vidyalelo
Python · Q5

Files Handling in Python

Programming · Python · question 5

Q5

How can you read a single line from a file in Python?

A.
By using the readline() method on a file object
Answer
B.
By using the line() function
C.
By using the get_line() method
D.
By using the read() method

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board