how to get hints on fixing silly syntax errors

asked 2019-01-31 12:05:30 +0200

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 12:32:00 +0200 )edit