QuestionQ126Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? A3B4C2Dan exception is raisedShow AnswerAnswerExplanationThe function composes the supplied callables as x(y(z)). The inner lambda evaluates 2 // 2 to 1; the outer lambda then evaluates 2 * 1 to 2. Python’s // operator performs floor division. Python Language Reference: ExpressionsLearn morePython Language Reference: ExpressionsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion