An object-based programming language is structured around two major concepts: objects and functions. An object is everything we create in a work session using a programming language such as Python. Functions allow us to assign one or more actions to these objects. Let’s learn how to create a function.
Some words about functions in Python
- 1.
The built-in functions that are part of Python and are loaded automatically when we run Python
- 2.
The functions we can build and use (user defined)
A function is a piece of code that performs ...