week-08.json
json Container
READ_ONLY_ACCESS
[ { "id": "python-w08-000", "front": "Week 8 Diagnostic: What does the list comprehension `[x * 2 for x in range(5) if x % 2 == 0]` evaluate to?", "back": "Answer: A — Even numbers in range(5): 0, 2, 4. Multiplied by 2: 0, 4, 8." }, { "id": "python-w08-001", "front": "Week 8 Diagnostic: What does `sorted(['banana', 'pie', 'apple'], key=len)` sort the list by?", "back": "Answer: B — Passing `key=len` orders items by the result of `len(item)`: ['pie', 'apple', 'banana']." } ]
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.