Chapter 2: Python Programming Specificities
The Python language was designed to emphasize code readability. As such, it provides syntaxes and constructs that allow developers to quickly express complex concepts in few and readable lines. However, this makes it quite different from other programming languages.
The goal of this chapter is thus to get you acquainted with its specificities, but we expect you already have some experience with programming. We'll first get started with the basics of the language, the standard types, and the flow control syntaxes. You'll also be introduced to the list comprehension and generator concepts, which are very powerful ways to go through and transform sequences of data. You'll also see that Python can be used as an object-oriented language, still through a very lightweight yet powerful syntax. Before moving on, we'll also review the concepts of type hinting and asynchronous I/O, which are quite new in Python but are at the...