You can use this assignment in your class!
Mastery Progress(100.0%)
i

You answeredJUST NOW
Python
You passed all test cases!
STDIN
4
Expected STDOUT
1 is odd
2 is even
3 is odd
4 is even
Your STDOUT
1 is odd
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
Your STDOUT
1 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
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
STDIN
-1
Expected STDOUT
Your STDOUT
STDIN
0
Expected STDOUT
Your STDOUT
STDIN
2
Expected STDOUT
1 is odd
2 is even
Your STDOUT
1 is odd
2 is even

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Instructor Alec KretchJAN. 22, 2021 AT 3:42 PMstarTop Answer
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
imgControl Flow in Python Presentation (pages 6, 9, 10)

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
  • A.
  • B.
  • C.
  • D.

Was this helpful?

(Voting helps us personalize your learning experience!)

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