title: Python: Function returning highest value in list without max()?
body: <p>I need to write a function that takes a list of numbers as the parameter and returns the largest number in the list without using <code>max()</code>.</p>
  
  <p>I've tried:</p>
  
  <pre><code>def highestNumber(l):
    myMax = 0
    if myMax &lt; l:
      return myMax
  
    return l
  
  
  print highestNumber ([77,48,19,17,93,90])
  </code></pre>
  
  <p>...and a few other things that I can't remember. I just need to understand how to loop over elements in a list.</p>