title: Python: How to find the second highest number in a list?
body: <pre><code>def second_highest(list):
  """ (list of int) -&gt; int
  </code></pre>
  
  <p>How do you find the second highest value from the list of integers without using remove, pop, or sort (which I tried) since I need to use the same list later on?</p>
  
  <p>There will be no duplication of numbers.</p>
  
  <pre><code>list.sort()
  return list[-2]
  </code></pre>
  
  <p>I tried removing the highest number using max, sorting the list, but since those mutates the list, I can't use them.</p>