Sublime Forum

Help me please! ilogic syntax error

#1

Hi, I’ve been wanting to work with Python for a long time in SublimeText 3, but I’ve had a problem from the beginning that I still can not solve.
I have the Package Controll installed.

1- when in SublimeText I put: Tools> SublimeREPL> Python> Python. Sublime text gives me what he says in the image 1

Then I try to create any code, for example … (image 2)

I clarify that I save the file with .py extension

then when I try to execute the code going to Tools> SublimeREPL> Python> Python> Python> RUN current file
a syntax error appears. (image 3)
As you saw earlier, the code is correctly written.

Please help me, I need to be able to use SublimeText
Excuse me for the “bad English”, it’s because I’m Spanish.
Thanks!

0 Likes

#2

It looks like you’re saving the contents of the REPL tab as TEST.py; that’s giving you an invalid Python file.

You want to create a .py file that has just your program in it, and then use the menu entry that SublimeREPL adds to run your program in the REPL instead.

0 Likes

#3

I do not understand what the problem is, can you explain it in another way please?

0 Likes