Back to courtyard
Comprehension Gardens · Stone · 4 min

evens 12

Print [i for i in range(12) if i % 2 == 0].

Lv 1· 22/22· 3/1· 3
  • Match the required output

Filter in a comprehension.

[0, 2, 4, 6, 8, 10]
1
2
3
4
5
6
7
8
The stone is quiet.