
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Change Current Directory Using Python
You can change directory or cd in Python using the os module. It takes as input the relative/absolute path of the directory you want to switch to.
For example
>>> import os >>> os.chdir('my_folder')
Advertisements