September 2026
1051 pages
35h 4m
English
In this section, we’ll provide a basic overview of functions and some concepts of object-oriented programming. In this regard, we’ll restrict ourselves to the aspects needed in the following chapters. Both topics will be dealt with again in detail in Chapter 17 and in Chapter 19, respectively.
In Python, parts of a program can be encapsulated in functions and then executed by means of a function call. The goal of this approach is to avoid redundancy in the source code. Functionality that is needed frequently should always be implemented only once as a function and then used as such in the remaining program. In addition, using functions can improve the readability and maintainability of the source ...
Read now
Unlock full access