Python Lessons - 3.3 Functions arguments m

Python Lessons – 3.3 Functions arguments

This is related to the concept of variable visibility. Variables defined outside the function also have value within the function, the variables used internally to the function do not have visibility outside (can not be used outside) and are destroyed as soon as Execution comes out of the operations inside the function.

Python Lessons - 3.6 Functions as objects m

Python Lessons – 3.6 Functions as objects

In Python Anything can be considered as a variable, even functions. In fact, although it may be very intuitive to start you can assign a function to a variable, in this way it is as if we had given a new name to the variable.

Python Lessons - 3.7 Modules

Python Lessons – 3.7 Modules

Modules are parts of code written by other programmers who perform functions that can be useful in many cases, so reusable in other codes. Each of these modules generally carries out a series of specialized operations in a given field that can be useful to reuse without having to rewrite the code from scratch.