Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
python move and rename files 1

python move and rename files

May 1, 2022 by Anurag batra
import os  
os.rename('guru99.txt','career.guru99.txt') 

Here is what the above code is Doing:
1. Importing the os module
2. Renaming the file guru99.txt to career.guru99.txt

Categories Python Examples
Post navigation
python auto reload module ipython
how to make a python app for android
© MyEduKit - 2022 . All Rights Reserved.