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

Unit 4.2: Count-based vectors

imgEducator’s Choice

You answeredJUST NOW
Python
You passed all test cases!
STDIN
tree
Expected STDOUT
[('a', 1), ('can', 1), ('every', 1), ('pine', 2), ('tall', 1), ('that', 1), ('was', 1)]
Your STDOUT
[('a', 1), ('can', 1), ('every', 1), ('pine', 2), ('tall', 1), ('that', 1), ('was', 1)]
STDIN
person
Expected STDOUT
[('chopped', 1), ('one', 1), ('plays', 1), ('tall', 1)]
Your STDOUT
[('chopped', 1), ('one', 1), ('plays', 1), ('tall', 1)]
STDIN
tall
Expected STDOUT
[('one', 1), ('person', 1), ('that', 1), ('tree', 1)]
Your STDOUT
[('one', 1), ('person', 1), ('that', 1), ('tree', 1)]

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Seongjin ParkAPR. 12, 2021 AT 12:45 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.