Vidyalelo
Python · Q37

Files Handling in Python

Programming · Python · question 37

Q37

How do you get the name of a file from a file object (fp)?

A.
fp.name
Answer
B.
fp.file(name)
C.
self.__name__(fp)
D.
fp.__name__()

Answer: Option A

Solution

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