Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to get hints on fixing silly syntax errors

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

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

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