Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
List comprehensions
After values = [parsed for raw in rows if (parsed := parse(raw)) is not None] succeeds, w…
from List comprehensions
Python 3.14
intermediate
1 min
After values = [parsed for raw in rows if (parsed := parse(raw)) is not None] succeeds, where is parsed bound?
In the scope containing the comprehension, with the last assigned value
Only in the comprehension’s implicit iteration scope
In the builtins namespace
Nowhere; assignment expressions are forbidden in filters
Check
Ask AI about this kata
Report an error
next kata
Which loop has the same order as [(team, member) for team in teams for member in team.mem…
Quiz
A new version is available
Reload