>>> print(repr('abc 123
'))
'abc 123
'
#A raw string considers backslash as literal instead of an escape character
print(r"CUsersMyNameDesktop")
#Without the r in front you will have to escape the with another
print("CUsersMyNameDesktop")
#Both will print the same thing "CUsersMyNameDesktop"
>>> s = r'HixHello'
>>> print(s)
HixHello
'''
Windows paths for files contain backslashes which python interprets as
escape sequences. To ignore these escape sequences, you can use raw strings!
'''
import os
# os.chdir changes the current working directory
os.chdir("C:UsersUSERNAMEDesktop") # Creates error
INSTEAD, USE:
os.chdir(r"C:UsersUSERNAMEDesktop") # Add an r before the string