# Functions in Python

Functions in Python: What a Function Is: def and Calling, Parameters and Return Values, Default and Keyword Arguments.

Updated: November 19, 2026

1. [What a Function Is: def and Calling](https://www.ask-codey.com/lessons/python-functions-def-and-call) (Novice): A function gives a job a name, written once with def and run whenever you call that name with parentheses, so a program does the same work in many places and changes it in one.
2. [Parameters and Return Values](https://www.ask-codey.com/lessons/python-functions-parameters-and-return) (Novice): Parameters let a function work on whatever values each call hands it, and return hands a result back to the code that called it, which is different from printing it and gives None when a function returns nothing.
3. [Default and Keyword Arguments](https://www.ask-codey.com/lessons/python-functions-default-and-keyword-arguments) (Apprentice): A default value lets a call leave an argument out, a keyword argument names the parameter it fills so the order no longer matters, and print() uses both in its sep= and end= arguments.

Source: https://www.ask-codey.com/courses/python-in-depth/topics/python-defining-functions
