title: Error in a code to calculate the max and min in a set of inputed numbers
body: <p>This is a simple code to calculate max and min values in a set of inputed numbers, the code keeps taking an input from the user until the user enters "done", this is when the loop breaks and the code prints the max and min it calculated.
  The problem is, i get an error in line 5, is there something wrong in this block of code? 
  if num=='done':
      break
  because this is the line that gives me error and i can't see anything wrong with it.</p>
  
  <pre class="lang-py prettyprint-override"><code>largest = -1
  smallest = None
  while True:
      num = input('Enter a number: ')
      if num == 'done':
          break
      try:
          n=float(num)
      except: 
          print("Invalid input")
          continue
      if largest ==-1:
          largest = n
      elif n&gt;largest:
          largest=n
  
      if smallest is None:
          smallest=n
  
      elif n&lt;smallest:
          smallest=n
  
  print("Maximum is", largest)
  print("Minimum is", smallest)
  </code></pre>
  
  <p>the code doesn't execute and gives an error at line 5 
  ParseError: bad input on line 5</p>