In this mastery I am going to explain how to create function in python. First the sintax of the function is “def”, it has to start always with that, after is the name of the function(is what ever you want it),next to the name is going to be the argument and put the tho dots at the end.In the following lines you have to define what is going to do your function, it depends of what do you want. To finish the statement return is going to be the output of the function (what is going to print the function).
also here is a link where you will found more information : http:/