Back to courtyard
Comprehension Gardens · Stone · 4 min

evens 7

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

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

Filter in a comprehension.

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