title: Python while true loop not reaching "except ValueError"
body: <p>I'm not sure whats wrong with the code as I'm only just starting out on python but when an erroneous value is typed in it outputs with "ValueError: could not convert string to float: '(Error value)'". However I would like it to output with "Invalid Character/s. Please Try Again." and then for the loop to continue back from the start, I wasn't able to figure out what I could change, so an explanation of what is required would be great as well.</p>
  
  <pre><code>ListOfNumbers = []
  while True:
    Number = float(input("Enter a number &gt;&gt;"))
    if Number == 0:
      print ("End.")
      break
    try:
      ListOfNumbers.append(int(Number))
      Average = float(sum(ListOfNumbers))/len(ListOfNumbers)
    except ValueError:
      print ("Invalid Character/s. Please Try Again.")
      continue
  print ("The total value is", sum(ListOfNumbers))
  print ("The average value is", Average)
  print ("The highest value is", max(ListOfNumbers))
  print ("The lowest value is", min(ListOfNumbers))
  ListOfNumbers.sort()
  print ("List of numbers", ListOfNumbers)
  </code></pre>