Finally, let's rename the file with the rename() function from the os module.

Use os.rename() with the old and the new path of the file.