In this tutorial we will see how to write functions in python.
Functions are blocks (or lines) of code which allowing us to order our code, make it more readable, and reuse it. We can pass data, known as parameters, into a function. Also, a function can return data as a results.
Syntax of a function:
As we can see, a function is defined using the ‘def’ keyword followed by the function’s name.
Eg.:
#technology #programming #data-science #python