Is there a way to code:
def fn():
return None
as a lambda, in Python?
Yes, the argument list can be omitted:
fn = lambda: None
The production from 5.12. Lambdas is:
lambda_form ::= "lambda" [parameter_list]: expression
The square brackets around parameter_list indicate an optional element.