Sublime Forum

>>> invalid Syntax

#1

I am new to Python and just been playing around with it. However, when I try to run, >>> 3+2, I always get an error saying the >>> is a syntax error. Anyone able to help me solve my problem?

0 Likes

#2

If you are not using a built-in feature, you should elaborate where it comes from.

>>> is invalid in Python indeed. Not sure what you are trying to do.
If you want to do 3+2, then just 3+2.

0 Likes

#3

May be worth pointing out that >>> is used as the “prompt” in Python where you type in what you want to run or to provide you an echo back of the input that you did give. As such you’re not meant to type it yourself.

1 Like

#4

Thanks. This solved my problem. Appreciate the help.

0 Likes