R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of these statements about Python functions is true?

  • (A) A function must always return a value
  • (B) A function cannot have default arguments
  • (C) Functions cannot be assigned to variables
  • (D) Functions are first-class citizens in Python
  • Correct Answer - Option(D)
  • Views: 15
  • Filed under category Python
  • Hashtags:

Explanation by: Ram Sharma
In Python, functions are first-class citizens, meaning they can be assigned to variables, passed as arguments, and returned from other functions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.