How Do You Rename A File #1054
How do you rename a file?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Files - Python Files - Quiz No.5.
How do you rename a file?
fp.name = ‘new_name.txt’
os.rename(existing_name, new_name)
os.rename(fp, new_name)
os.set_name(existing_name, new_name)