title: Python- Finding the largest number in a list using forloop or while loop
body: <p>Basically we are given a list of numbers and we are asked to write an algorithm to find the largest number in the list, note: the numbers are not in order and may contain decimals and negative numbers.
  this must be done using loop statements in python 3.2.3
  Thanks.</p>
  
  <pre><code>alist=[3,10,90,5,-2,4,18,45,100,1,6]
  largest=int()
  for large in alist:
      if large &gt;= large+1:
         largest=large
  print(largest)
  </code></pre>
  
  <p>EDIT
  IT WORKS!! Thanks!</p>
  
  <pre><code>alist=[-45,0,3,10,90,5,-2,4,18,45,100,1,-266,706]
  largest=alist[0]
  for large in alist:
      if large &gt; largest:
          largest=large
  print(largest)
  </code></pre>