SyntaxFix
Write A Post
Hire A Developer
Questions
All the three syntax work very well.
Another way is to first write
path = r'C:\user\...................' (whatever is the path for you)
and then passing it to os.chdir(path)