May 2018
Beginner to intermediate
452 pages
11h 26m
English
If you use the Unix-style forward slash path separators on a Windows system, Python will automatically translate them into backslashes. This is quite useful for cross-platform purposes because using backslashes in strings can be problematic.
Note that the reverse is not true: Python will not translate backslashes into Unix-style forward slashes. A path like r'\usr\bin\python will not work on macOS or Linux.