Syntax error when defining a function on the Python command line ...

Syntax error when defining a function on the Python command line ...

More to explore

Based on this image's title: “Syntax error when defining a function on the Python command line ...