In this video, we will learn about the os module which helps us to work with the operating system of our computer. Some of the methods that we will cover in this video are :
1) os.mkdir - To create a new directory
2) os.chdir - To change to some other directory
3) os.getcwd - To get the current working directory
4) os.rmdir - To remove a specified directory
5) os.listdir - To list the files and directories in a specified directory
.The code for the video can be found on GitHub. #python
----------------------------------------
🐱💻 🐱💻 Course Links:
Complete Code - [ Ссылка ]
Visual Studio Code - [ Ссылка ]
Git - [ Ссылка ]
---
Support my channel:
💜 Join the Discord community 👨👩👧👦: [ Ссылка ]
💜 One time donations via PayPal
Thank you! 🙏
---
Follow me on:
👉 Twitter: [ Ссылка ]
👉 Instagram: [ Ссылка ]
The OS Module | Python Tutorials For Beginners
Теги
working with os module in pythonpython3 os modulelearn python3 os module in 10 minutesos module python3 tutorialos.mkdir in pythonos.chdir in pythonos.getcwd in pythonos.rmdir in pythonos.listdir in pythoncreating a directory in python using os moduleremoving directory os module python3get current working directory python3 os modulechanging directory using os modulelisting files and directories using os.listdir method of the os module