Creating functions
Introduction to Functions
The help function:
This shows arguments
Provides info of what the function does
The print function:
Creating your own function:
You define functions with the word def
Calling function instances with args:
To do a more personalized greeting:
Adding a default argument to the function:
This is used when an arg is not passed to the function
Adding and documenting functions in a prod environment:
When you are defining a function the value is a
Parameter
When you are calling a function the value is a
Argument
Last updated