Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 41)
41.
What is the purpose of the os.path.basename() function?
Returns the base name of a file or directory
Returns the absolute path of a file
Checks if a path is a regular file
Deletes a file
Answer: Option
Explanation:
os.path.basename() returns the base name of a file or directory.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.