In Python, you can use the os module to change the current working directory using the chdir() function.