Skip to main content Brad's PyNotes

Posts on Python

  1. Built-in Types: str, list, dict, and set

    TL;DR

    Python’s built-in types (str, list, dict, set) come packed with dozens of methods for manipulation, searching, and transformation. Dictionaries maintain insertion order since Python 3.7, and many lesser-known methods like dict.setdefault(), str.removeprefix(), and set operations on dictionary views can simplify common patterns.