Question: **IN PYTHON** write a function named wordCount that accepts a list of strings as a parameter and returns a count of the number of unique

**IN PYTHON**

write a function named wordCount that accepts a list of strings as a parameter and returns a count of the number of unique words in the list. solution cannot be more than 3 lines of code (can be less) including the return statement

# needs to pass through the following assert statements

assert word_count_in_set(["the", "quick", "brown", "fox", "brown"]) == 4, 'expected 4' print("correct") assert word_count_in_set(["brown", "brown"]) == 1, 'expected 1' print("correct")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!