Friday , September 20 2024

What keyword would you use to define an anonymous function?

Questions BankCategory: Python Essentials 2What keyword would you use to define an anonymous function?
What keyword would you use to define an anonymous function?

  • afun
  • yield
  • lambda
  • def

Explanation: Remember that in Python, a lambda function is a single line function declared with no name – in other words anonymous.

More Questions: Python Essentials 2 – Module 4 Test