Python

A complete core Python path: syntax, data types, operators, strings, control flow, collections, functions, exceptions, files, modules, the standard library, OOP, iterators, generators, decorators, internals, concurrency, regular expressions, testing, typing, performance, security, problem solving, projects, interview preparation and exams.

110 notes in 33 topics

Topics in Python

Notes

Python

Scope and the LEGB Rule

Python resolves a name by looking in four places in a fixed order: local, enclosing, global, built-in. Assignment anywhere in a function makes the nam...

Read more
Python

Lambda Functions

A lambda is a small anonymous function written as a single expression. It exists for the places where naming a function would add nothing.

Read more
Python

Recursion: How It Works

A recursive function calls itself on a smaller version of the problem until it reaches a case it can answer directly. Every one needs a base case and...

Read more
Python

The Exception Hierarchy

Every exception is a class in one inheritance tree. Catching a parent catches all its children, which is what makes handler order and handler width ma...

Read more