Examveda
Examveda

How can you rename a file in Python?

A. By using the os.rename() function

B. By using the file.rename() method

C. By using the file.rename_to() method

D. By using the rename() method

Answer: Option A


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

Join The Discussion

Related Questions on Files Handling in Python