week-06.json
json Container
READ_ONLY_ACCESS[ { "id": "python-w06-000", "front": "Week 6 Diagnostic: For list `L = [1, 2, 3, 4, 5]`, what does `L[1:4]` return?", "back": "Answer: A — Slicing `L[1:4]` includes index 1, 2, 3 (values 2, 3, 4) and excludes index 4." }, { "id": "python-w06-001", "front": "Week 6 Diagnostic: If `A = [1, 2]`, and `B = A`, and then `B.append(3)` is run, what is the length of `A`?", "back": "Answer: 3 — `B = A` creates an alias to the exact same list in memory. Modifying `B` mutates `A`, so `len(A) = 3`." } ]