ABSTRACT

In this chapter, the authors give a broad introduction to the Python programming language, using Python version 3. For the beginner Python3 programmer, they illustrate all of its important programming capabilities and syntactic structures, in the context of the three predominant computer programming paradigms: virtualization, concurrency, and persistence. The easiest, and quickest, way to use Python3 on the Raspberry Pi is to deploy the Thonny Integrated Development Environment to interact with Python and construct and run program code. At the top of the window is a row of Toolbar Area icons, that allow the authors to do various operations, such as debug or test, load, save, and execute Python program code. Computer programs execute and accomplish their objectives in a particular order, from start to finish. They may “branch” within that order, perhaps to only execute some of their instructions, based on certain logical tests or conditions.