Post

@PythonPr I understand that in addition to that deffun error the if statement has an empty then block in the latter example.
English

@PythonPr def fun(n): is valid Python syntax. deffun(n): is invalid because def must be followed by a space and a function name. The second snippet raises a SyntaxError, while the first correctly computes 3! = 6.
English



