You answered

*JUST NOW*Python

STDIN

4

Expected STDOUT

1 is odd

2 is even

3 is odd

4 is even

2 is even

3 is odd

4 is even

Your STDOUT

1 is odd

2 is even

3 is odd

4 is even

2 is even

3 is odd

4 is even

STDIN

7

Expected STDOUT

1 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

Your STDOUT

1 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

STDIN

15

Expected STDOUT

1 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

8 is even

9 is odd

10 is even

11 is odd

12 is even

13 is odd

14 is even

15 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

8 is even

9 is odd

10 is even

11 is odd

12 is even

13 is odd

14 is even

15 is odd

Your STDOUT

1 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

8 is even

9 is odd

10 is even

11 is odd

12 is even

13 is odd

14 is even

15 is odd

2 is even

3 is odd

4 is even

5 is odd

6 is even

7 is odd

8 is even

9 is odd

10 is even

11 is odd

12 is even

13 is odd

14 is even

15 is odd

STDIN

-1

Expected STDOUT

Your STDOUT

STDIN

0

Expected STDOUT

Your STDOUT

STDIN

2

Expected STDOUT

1 is odd

2 is even

2 is even

Your STDOUT

1 is odd

2 is even

2 is even

###### Instructor solution

###### Control Flow in Python Presentation (pages 6, 9, 10)

By Alec Kretch (Aug 26, 2022)

You may exit out of this review and return later without penalty.