How does os.rename function works in python?

Replit Profile:

Hi @SAKSHiGoswami1 , welcome to the forums!
os.rename takes 2 arguments: the 1st is the current name of the file you want to rename, and the 2nd is the name you want the file to be.

import os
os.rename('', '')

Here, is the old name, and is the new name.
After running the program, you will see the filename change.

Hope this helps!