Skip to content
Why am I seeing Invalid Syntax?
Profile icon
IraniqueMartin

I'm currently doing my first task. I've don't have any previous experience with REPLs but I've been able to navigate through the instructions. I've followed all of the steps necessary but I'm seeing SyntaxError: invalid syntax on my very last line. The line looks correct so I have no idea what's wrong.
Annotation 2020-03-18 115338

You are viewing a single comment. View All
Profile icon
UniqueOstrich18

It is because you are using parentheses in the print statement, even though you are using Python 2.7. Just remove the parentheses, or make a new repl in Python 3 with the same contents.
Change:

print("to be printed")

To:

print "to be printed"