def
keyword.def
keyword followed by the function name and parentheses ()
.return
statement to send a value back to the caller.()
.*args
: Accepts any number of positional arguments as a tuple.**kwargs
: Accepts any number of keyword arguments as a dictionary.return
statement is used to send a value back to the caller.global
keyword to modify a global variable inside a function.lambda
keyword.