I am trying to open a text file 'Person.txt' and I get this error
This is my code:
PD = open('C:\Users\Scooter\PeopleList.txt')
This is the file:
a
b
c
d
This is the error:
C:\Users\Scooter\PycharmProjects\class.py\venv\Scripts\python.exe C:/Users/Scooter/PycharmProjects/class.py/main.py
File "C:\Users\Scooter\PycharmProjects\class.py\main.py", line 1
PD = open('C:\Users\Scooter\PeopleList.txt')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape