# What a Function Is: def and Calling

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.

![Cheat sheet: What a Function Is: def and Calling](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/75d069ee3ef6479ea1d10bd9a1d482e4.webp)

- Category: Python
- Level: Novice
- Tags: def, Docstring, Function (python), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-functions-def-and-call-cheat-sheet
