week-03.json
json Container
READ_ONLY_ACCESS[ { "id": "python-w03-000", "front": "Week 3 Diagnostic: What does the expression `10 if 3 > 5 else 20` evaluate to?", "back": "Answer: 20 — Since `3 > 5` is False, the ternary expression returns the `else` branch value: 20." }, { "id": "python-w03-001", "front": "Week 3 Diagnostic: In Python, is the chained comparison `1 < 3 < 2` valid syntax, and what does it return?", "back": "Answer: C — Python allows chained comparisons: `1 < 3 < 2` is equivalent to `(1 < 3) and (3 < 2)`, which evaluates to `True and False` -> `False`." } ]