Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 84

Which description of a lambda expression is accurate in Python?

  1. It creates a statement block that must use return.
  2. It executes once and stores only the resulting value.
  3. It creates a function that always produces None.
  4. It creates a function with one implicitly returned expression.الإجابة الصحيحة

الشرح

Lambda creates a function whose body is limited to one expression, and evaluating that expression supplies the call result implicitly. It cannot contain an arbitrary suite of statements, and it does not inherently return None.

تابع هذا الاختبار

بدء التدريب
السؤال 84: Which description of a lambda expression is accurate in… · Python Fundamentals · Questena