Built-ins, Classes & Iterators
The standard toolbox (built-in functions, iterators and a first look at classes) that replaces dozens of hand-written loops.
After this lesson you will be able to
- Use
len,sum,min,max,sorted,reversed,enumerate,zip,map,filter,anyandallfluently. - Explain what an iterator is, why it can be used only once, and what a generator saves.
- Write a small class with
__init__, methods,__len__and__repr__. - Use
Counterfrom the standard library for counting problems.