Quark’s Outlines: Python User-Defined Functions

Overview, Historical Timeline, Problems & Solutions

An Overview of Python User-Defined Functions

What is a Python user-defined function?

You can define your own function in Python using the def keyword. A Python user-defined function is made when you write a def block in your code. When Python runs this block, it creates a function object.