Python Multiple Choice Questions
How do you rename a file?
A. fp.name = 'new_name.txt'
B. os.rename(existing_name, new_name)
C. os.rename(fp, new_name)
D. os.set_name(existing_name, new_name)
Show Answer




DigitalOcean Referral Badge

© 2022-2023 Python Circle   Contact   Sponsor   Archive   Sitemap