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

Unit 4.2: Count-based vectors

You answeredJUST NOW
Python
You passed all test cases!
STDIN
56 787 12;4 0 0;89 98 89;1 1 1;1 1 2
Expected STDOUT
[ 30.2 177.4 20.8]
Your STDOUT
[ 30.2 177.4 20.8]
STDIN
1 1 1;1 1 2
Expected STDOUT
[1. 1. 1.5]
Your STDOUT
[1. 1. 1.5]
STDIN
4 0 0;1 1 2
Expected STDOUT
[2.5 0.5 1. ]
Your STDOUT
[2.5 0.5 1. ]
STDIN
56 787 12;4 0 0;89 98 89
Expected STDOUT
[ 49.66666667 295. 33.66666667]
Your STDOUT
[ 49.66666667 295. 33.66666667]

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Professor Gus Hahn-PowellAPR. 21, 2021 AT 12:36 PMstarTop Answer
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.