Easy
Even Numbers Up To n
Read n and print a list of the even numbers from 0 to n using a comprehension with
if.Input
One integer n ≥ 0.
Output
A Python list.
Sample 1
Input
10
Output
[0, 2, 4, 6, 8, 10]
Sample 2
Input
0
Output
[0]
Output appears here