title: how to solve this error with lambda and sorted method when i try to make sentiment analysis (POS or NEG text)?
body: <p>Input code:   </p>
  
  <p><code>best = sorted(word_scores.items(), key=lambda w, s: s, reverse=True)[:10000]</code></p>
  
  <p>Result:  </p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Users\Sarah\Desktop\python\test.py", line 78, in &lt;module&gt;
  best = sorted(word_scores.items(), key=lambda w, s: s, reverse=True)[:10000]
  TypeError: &lt;lambda&gt;() missing 1 required positional argument: 's'
  </code></pre>
  
  <hr>
  
  <p>How do I solve it?</p>