Python Function Header
In Python, a function header is the first part of a function definition. It starts with the keyword def
, followed by the function name and parentheses ()
which may include parameters, and ends with a colon :
.
Example:
def greet(name): print(f"Hello, {name}!")
In this example, greet
is the function name and name
is the parameter. The function header is def greet(name):