title: how to sort list of strings and numbers by numbers
body: <p>I want to sort this list by numbers, but I do not know how. I want to sort parenthesses by numbers, but if i do list.sort, it sorts by keys.</p>
  <pre><code>list = [(&quot;Max&quot;, 25), (&quot;Lisa&quot;, 10), (&quot;Jacob&quot;, 34)]
  list.sort()
  print(list)
  </code></pre>
  <p>how can i do it? Thanks.</p>