PythonSnippets.Dev
A curated list of good to know Python Snippets. Visit PythonSnippets.dev.
Advertise with us

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

SUBSCRIBE
Please subscribe to get the latest articles in your mailbox.




DigitalOcean Referral Badge

Get a .COM for just $5.98!


© 2021-2022 Python Circle   Contact   Sponsor   Archive   Sitemap   Partner Sites: PythonSnippets.Dev  99Dev.Tools