QuestionQ76Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of these lambda function definitions are valid?Choose twoAlambda lambda: lambda * lambdaBlambda x : def fun(x): return xClambda : 3.1415Dlambda x : NoneShow AnswerAnswerExplanationA lambda body must consist of a single expression. lambda : 3.1415 is a valid zero-argument lambda, and lambda x : None is a valid one-argument lambda whose expression evaluates to None.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion