October 2023
Beginner to intermediate
215 pages
4h 3m
English
This chapter contains an assortment of topics, such as functionally-oriented programming, generators and iterators, and magic methods (“dunders”).
The first part of this chapter discusses functional programming, which includes iterators such as filter(), map(), and reduce(), which enable you to iterate over the items in a data structure.
The second part of this chapter discusses lambda expressions, along with some code samples that illustrate how to define them.
The third section describes the concept of a pipe, after which you will learn about generators. The last section contains various code samples involving generators, such as generating a list of prime numbers.
Python ...
Read now
Unlock full access