I am trying to open a pdf file using python in jupyter notebook which is on desktop and the path is something like this: C:\Users\laxmi prasad\Desktop\ and it's showing error.
import PyPDF2
red_ball = open('C:\Users\laxmi prasad\Desktop\Neeraj Kasturi_mystery','rb')
and the error it shows is
File "<ipython-input-5-565b4f1ccaec>", line 1
red_ball = open('C:\Users\laxmiprasad\Desktop\Neeraj Kasturi_mystery','rb')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 2-3: truncated \UXXXXXXXX escape
I think it's the space between inside the path between two words, but that's the folder name. Can anyone help me understand this issue ?