Vidyalelo
Python · Q56

Files Handling in Python

Programming · Python · question 56

Q56

How can you rename a file in Python?

A.
By using the os.rename() function
Answer
B.
By using the file.rename() method
C.
By using the file.rename_to() method
D.
By using the rename() method

Answer: Option A

Solution

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