Skip to content

Glossary: Python Basics

Function

Also written: functions

A named piece of code that does a job when you call it, such as `print` or your own `greet`. It can take arguments and hand back a result.

Where the book teaches it

Related terms

def