Functions in python

Functions in Python are defined with the def keyword. They support default arguments, *args, **kwargs, type hints, and docstrings. Functions are first-class objects—they can be passed as arguments, returned from other functions, and assigned to variables.