title: Find the most frequest value in a list explanation
body: <p>This is more of a question for explanation rather than answer. I tried to google search but I'm having a hard time understanding this piece of code.</p>
  
  <p>Find The Most Frequent Value In A List.</p>
  
  <pre><code>test = [1, 2, 3, 4, 2, 2, 3, 1, 4, 4, 4] 
  print(max(set(test), key = test.count))
  </code></pre>
  
  <p>How does the above code works?
  max() is to find the largest value which I guess in this case comparing <code>set(test)</code> vs <code>test.count</code>?</p>
  
  <p>set(test) is to create a set from the array</p>
  
  <p>I'm not sure how to read <code>key = test.count</code> looking at google search .count() is for array is supposed to find the number of occurent like <code>test.count(2)</code>, it should return 3 occurences</p>
  
  <p>if people can point me to the right documentation that would also be great.</p>