In Mastery07 I explained what a function is, how it works and how you can call it. This Mastery will be about creating your own function.
To create a function you simply have to tell the compiler the name of the function and the parameters. The syntax is as following:
Of course functions can be way more complex, but the principle is always the same.
Unlike other programming languages like C/C++, Java etc. Python does not support function overloading. That means that you can not define another function with the name „sum_function“ with different parameters. If you do so the compiler will only use the latest defined function.