I tried to rename my existing file, "test.py" to "test1.py". It just creates a new file called "test1.py" instead of renaming "test.py" to "test1.py". My code is below. import os os.rename("test.py", "test1.py") Continue reading...