I normally use the python shell to test small things, with no needed to make a new .py file.
I wanted to test something like:
>>> def a :
pass
but i don’t know how to scape the intro. I tried on the same line
>>> def a: pass
but throws a syntax error, for the indentation I suppose
The syntax for a single-line function definition is:
You were missing the non-optional
()(e.gdef a(arg1, arg2): pass)