Function 1
Function 1
Output
• Some of the functions that we have worked with are:
function input
function name
Praveen Kumar A
• We are not limited to using just the built-in functions. Python
also allows us to create our own functions to use.
• To define or create a function (in 5 easy steps):
4. Optional
but highly
recommended:
Add comments
to describe the
function
!! Important !! 5. Add statements
Indent and line up all that do the task of
statements after the the function
first header statement
Function Definition (1 of 2)
• The function definition is the block of code that makes up the
function.
header
function body