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

You answeredJUST NOW
Python
You passed all test cases!
STDIN
1 1 0 0 0 1 0 1 0 1 1 0 0 0
Expected STDOUT
0.8333333333333334
Your STDOUT
0.8333333333333334
STDIN
1 0 1 0 1 1 0 1 0 1 1 0 0 0
Expected STDOUT
0.8571428571428571
Your STDOUT
0.8571428571428571
STDIN
1 1 1 1 1 1 1 1 1 1 1 1 1 1
Expected STDOUT
0.6428571428571429
Your STDOUT
0.6428571428571429
STDIN
1 0 0 0 0 0 0 0 0 0 0 0 0 0
Expected STDOUT
1.0
Your STDOUT
1.0

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Seongjin ParkMAR 27, 2022, 4:55:51 PM
Python

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.