Examveda

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

A. fp.name

B. fp.file(name)

C. self.__name__(fp)

D. fp.__name__()

Answer: Option A


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

Join The Discussion

Related Questions on Files Handling in Python