Welcome to Python Introductory Lessons
I will be posting here the notes used to teach in our python class.
Quick Linksβ
- Code runners use Piston (local API). Turtle labs need a local Python install.
Class Structureβ
Notes follow the same rhythm as C++:
-
Teach 1β2 ideas, then a mini quiz or a graded challenge
-
End the chapter with Exercises (one activity visible at a time)
-
Run code here with Piston (not Trinket), except turtle graphics that need a canvas
-
Sandbox: pandas & charts β tables, ASCII bars, matplotlib PNG lab
-
Intermediate: The Python Data Model, An Array of Sequences, Dictionaries and Sets, Text versus Bytes, Data Class Builders, Decorators and Closures, Design Patterns with Functions, A Pythonic Object, A Pythonic Object, part 2, Sequences and Special Methods, Interfaces, Protocols, and ABCs, Inheritance: For Good or For Worse, More About Type Hints, Operator Overloading, Iterables, Iterators, and Generators, Generators in the Library, Context Managers and else Blocks, Classic Coroutines, yield from and Simulations, Concurrency Models, Process Pools and Scale, Concurrent Downloads, map, tqdm, and HTTP Errors, Asynchronous Programming, Servers, async for, Curio, Dynamic Attributes, Validating Properties, Attribute Descriptors, Class Metaprogramming