You've learned two new collection types. Tuples: - Immutable sequences created with parentheses or commas. Support indexing, slicing, and unpacking. Can be dictionary keys and set elements.
Perfect for data that shouldn't change Sets: - Unique elements only, unordered. Fast membership testing. Support union, intersection, difference operations. Perfect for deduplication and membership checks We used sets to count unique words, find common characters, and remove duplicates.
The right data structure turns complex problems into simple ones. Next, you'll learn how strings work at a deeper level, with methods and operations that make text processing simple.