Functions

Learn about Python functions.

We'll cover the following...

Definition

Functions are a series of statements that are used to perform a specific operation. In Python, there are two types of functions: built-in functions and custom-defined functions, the latter of which we will be discussing in this lesson.

Syntax

To define a function in Python, we use the def keyword along with the name ...