This has been asked before, but none of the solutions I've found have worked for me.
I am trying to do this tutorial from w3schools. I am trying to open a .py file I created in a text editor https://www.w3schools.com/python/python_getstarted.asp
I get the below
>>> C:\Users\Acer ES 15\Desktop\demo_string_input.py
File "<stdin>", line 1
C:\Users\Acer ES 15\Desktop\demo_string_input.py
^
SyntaxError: unexpected character after line continuation character
I think the problem has something to with the \U. There have been many suggestions that don't work including putting quotes around the filepath, putting an 'r' in front, duplicating and triplicating the backslashes. None of it has worked.
The problem may also have something to do with the space in my username (Acer ES 15). Putting quotes aound the filepath gives the below
>>> 'C:\Users\Acer ES 15\Desktop\demo_string_input.py'
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 2-3: truncated \UXXXXXXXX escape
>>>
I am using Windows 10 and the Python 3.7 interface available at https://www.python.org/
I am getting the file path by right clicking the file and clicking 'copy full filepath'