Glossary
Def
Define functions in Python
Python def
is the command you put at the front of the functions youβre defining.
You can call def when creating functions, or class methods. Make sure that your function code is on the next child indent.
There is not a lot of magic to this one!
Fun fact: def
stands for βdefineβ as in, define a function or define a method.
Letβs take a look at a python def
code sample.