Convert python2 to 3 showing syntax error

I wanted to convert python 2 codes to python 3. I came across a tutorial from YouTube (https://www.youtube.com/watch?v=8qxKYnAsNuU).
But when i run the lines, it showing following errors as in the image:


I have the following files:

This is the file I wanted to translate code from python 2 to python 3:

File name: FSX_Material4FSX-P3D.py
File location: C:\Users\mvarm\Desktop\Python 2 to 3 translate\FSX_Material4FSX-P3D.py

Python 3.6 Location:

C:\Users\mvarm\AppData\Local\Programs\Python\Python36-32\python.exe

Python2to3 File Location:

C:\Users\mvarm\AppData\Local\Programs\Python\Python36-32\Tools\scripts\2to3.py

Hope someone can help me to run the above file correctly without the error.

Thanks in advance.

The problem is you are trying to run a python program from inside the python shell. In the first line of your screenshot you enter the python shell with this:

C:\blah\blah\python.exe

That’s why the bottom line starts with “>>>”

Notice he closed the powershell window and reopended it at 2:30

You would want to leave the python.exe part out, see 3:50 in the video you linked to: