title: Maximum and minimum of integers in python using none type
body: <p>Am using Python 2.7 .I tried  initializing smallest and largest to none and then split the if's into 2 conditions.
  The problem is the smallest is always none. I don't get the minimum of the numbers entered. What is going on here?</p>
  
  <pre><code>largest=None
  small=None
  
  
  while True:
   num = raw_input("Enter a number: ")
   if num == "done" : break
   else:
    n1=int(num)
  
    print largest
    n1= int(num)
    print small
   if n1 &lt;small:
    small=n1
  
   if n1&gt; largest:
    largest=n1
  
  
  print "Maximum", largest
  print "Min", small
  </code></pre>