Get current working directory
import os
os.getcwd()
## 'C:\\Users\\MDNat\\Documents\\Github\\data_science_website'
Using a relative path with no forward slash in the start of the path
os.chdir('images/bioinformatics')
Using an absolute path, using a backslash and ‘r’ prefix
os.chdir(r'D:\R\Scripts')