Quick Answer
Python functions are first-class objects - assignable to variables, passable as arguments, returnable from other functions. def defines a function, lambda creates anonymous single-expression functions. Default parameter values, *args (variable positional args), **kwargs (variable keyword args). Closures capture variables from enclosing scope. Nested functions, decorators, and higher-order functions are all supported.
Answer
Functions use def keyword. Support default, keyword, and variable-length args. Support lambdas and decorators. Functions are first-class objects.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.