--Originally published at Programming Fundaments
A function, in programming, is used to implement mathematical functions (duh), they are known as subroutines, routines, procedures, methods, etc. A function in Python is defined by a def statement an the normal syntax is wroten as this:
def function-name(Parameter list): statements, i.e. the function body
That usually how you write a function in the next blog we are going to go over the function througly
Examples and more information at: http://www.python-course.eu/python3_functions.php