List comprehension
easy
What is [x * x for x in range(4) if x % 2 == 0]?
Your answer
Stuck?
Open hints one at a time. The write-up explains a full solution.
Discussion
Ask a question or share a tip. Please don’t post full solutions. Posts appear once a moderator approves them.
No posts yet.