1import os
2os.rename(r'C:\Users\Ron\Desktop\Test\Products.txt',r'C:\Users\Ron\Desktop\Test\Shipped Products.txt')
3
1import os
2
3old_file_name = "/home/career_karma/raw_data.csv"
4new_file_name = "/home/career_karma/old_data.csv"
5
6os.rename(old_file_name, new_file_name)
7
8print("File renamed!")