Feb-09-2021, 06:59 PM
A backslash is an escape character, that's why it looks weird in the error message. You can either escape them, use a raw string, or use forward slashes.
path1 = "c:\\windows\\test" path2 = r"c:\windows\test" path3 = "c:/windows/test"Getting in the habit of using forward slashes will help when you start writing scripts to work in more places than just windows.