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

Control Flow in Python Assignment

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
Alec KretchAUG 26, 2022, 4:55:14 PM
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?
Select one of the following options:
  • A.
  • B.
  • C.
  • D.
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

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