Syntax: Types of Functions
Syntax: Types of Functions
Syntax: Types of Functions
specific task.
Functions help break our program into smaller segments .
As our program grows larger and larger, functions make it
more organized and manageable.
SYNTAX
def functionname( parameters ):
"function_docstring"
function_suite
return [expression]
EXAMPLE
def printme( str ):
"This prints a passed string into this function"
print str
return
Types of Functions