stdlib

Guides to the Python standard library and its most useful built-in modules.

Big O Notation in Python, Explained with Real Timings

Big O notation is the language engineers use to describe how an algorithm’s cost grows as the input gets bigger, and once you can read it you stop guessing about performance and start predicting it. This post skips the heavy math and instead runs real timeit measurements so you can watch O(1), O(log n), O(n), O(n log n), and O(n squared) behave exactly the way the theory says they will. “Premature optimization is the root of all evil.” Donald Knuth, ... Read More

Python OOP Project: Build a Bank Account Manager (Capstone)

This Python OOP project answers the question every beginner quietly asks after learning classes: when would I actually create one? We will build a small bank account manager that uses inheritance, magic methods, properties, custom exceptions, and JSON persistence, the exact tools you met one at a time across the OOP chapter, snapped together into a program you can run and keep. “An expert is a person who has made all the mistakes that can be made in a very ... Read More

Python Project: Build an Expense Tracker (Files, JSON, Dicts)

This Python expense tracker project pulls together the pieces you have been learning one at a time, dicts, lists, functions, files, JSON, and exceptions, into a single small program you can actually run and keep. If the last few tutorials felt like isolated Lego bricks, this is the post where you snap them into something that holds together. “Software is eating the world.” Marc Andreessen, The Wall Street Journal, 2011 Last Updated: July 2026 | Tested on: Python 3.14.6 | ... Read More