How Can I Create and Call a Function

To create a function in Python, the word def precedes the function name
and the function name is followed by (), which is then followed by :

Below, we create a function called Example():

To call a function in Python, the function name followed by () is used.

The following code below calls the Example() function: