Define a generator even that produces even numbers (0, 2, 4, 6, ...).
For a given number n, print out the first n ones on separate lines.
Define a generator even that produces even numbers (0, 2, 4, 6, ...).
For a given number n, print out the first n ones on separate lines.
Sample Input 1:
2Sample Output 1:
0
2Sample Input 2:
5Sample Output 2:
0
2
4
6
8Create a free account to access the full topic