Python Drukuj surowy sznur
>>> print(repr('abc 123 \n'))
'abc 123 \n'
Enoch
>>> print(repr('abc 123 \n'))
'abc 123 \n'
'''
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:\Users\USERNAME\Desktop") # Creates error
INSTEAD, USE:
os.chdir(r"C:\Users\USERNAME\Desktop") # Add an r before the string