Repository navigation
exercise6/answer.py: chained comparisons like 70 <= score < 90 — long form or idiomatic form?
#26
Unanswered
dab00gieman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The grading chains in
answers/exercise6/answer.pyspell out bounds as:Python's idiomatic chained comparison is
70 <= score < 90, which the same file's neighbours could use throughout. For a beginner-focused curriculum, is the long form deliberate (making both bounds explicit for learners), or worth a follow-up exercise on chained comparisons as the canonical rewrite?All reactions