title: Find largest number from user input
body: <p>I trying to make a code which print largest and smallest number from user input. I want that user can input the number until there is <code>ValueError</code></p>
  
  <p>I have tried something like this:</p>
  
  <pre><code>value = raw_input("&gt;")
  
  largest_so_far = None
  smalest_so_far = None
  
  while(value):
      if value &gt; largest_so_far:
          largest_so_far = value
      if ValueError:
          print largest_so_far
  </code></pre>
  
  <p>this code creates infinite loop. So how can I make it finite. </p>