Be Globally Certified In Python

Python is a great text coding programming language for kids!

Python Function

In Python, a function is a group of related statements that performs a specific task.

A function is a block of code which only runs when it is called.

A function is always has organized, reusable code that is used to perform a single, related action

What is a function:

A function is a block of code which only runs when it is called.

How to call a function:

In Python a function is defined using the def keyword:

How to create a function:

To call a function, use the function name followed by parenthesis

Below is an example of a function: