If we want to create a function in python we only have to do define the function and the parameters.
.
Now that we define the function and the parameters now we have to work with it, we put a for, an if, a while or something that we want in the function, for example I only want the sum of two numbers, I only write return x + y.
Now to call the function I only write print (The name of the function (the parameters))
The result of this is
Mastery 11 & 12 by juanmele97 is licensed under a Creative Commons Attribution 4.0 International License.