#Import os Library
import os
#Rename file of the specified path
os.rename("C:/w3schools/test.txt","C:/w3school/demo.txt")