how to get hints on fixing silly syntax errors

asked 2019-01-31 05:05:30 -0500

florin gravatar image

Hi, I just spent half an hour on these two commands.

def mov(): 
        P=matrix(QQ,[[1, 1],[0, 1]]);
        show(P)

I retyped them, I moved them in different cells, nothing, I get syntax error.

"<ipython-input-76-049764d5c40b>", line 1
    def mov() :
       ^
SyntaxError: invalid syntax

It works as long as I do not try to make a function

edit retag flag offensive close merge delete

Comments

1

It works for me. Didi you check that the space is not a wrong invisible character ?

tmonteil gravatar imagetmonteil ( 2019-01-31 05:32:00 -0500 )edit