New course! Every coder should learn Generative AI!
Try a free lesson3 Answers
+ 5
Use the Counter module
https://docs.python.org/2/library/collections.html
You can input an array of the words and there’s a most_common method
0
\ but wrong why?
0
Thanks Ariela!