Python Lists: Indexing, Slicing, Sorting, Methods, Nested Lists, List Comprehensions, and Memory Behavior
Complete Python lists guide. Creating lists (empty, single, constructor), lists in memory (store references not values), mutability with id proof, positive and negative indexing, slicing with step parameter, slice assignment, adding elements (append vs extend vs insert with analogy), removing elements (remove vs pop vs del vs clear), searching (index, count, in operator), sorting (sort vs sorted trap, key parameter, lambda sorting, reverse), copying (assignment is not a copy, shallow vs deep copy with memory diagram), list comprehensions (basic, with condition, nested, performance), nested list trap ([[0]*3]*3), iteration (for, enumerate, zip, zip_longest), useful operations (any, all, unpacking with *), lists vs tuples vs sets comparison, 7 common mistakes, and 6 interview Q&As.