title: How to use user input to end a program?
body: <p>I'm new to python and I am writing a program that converts Millimeters to Inches. Basically its a continuous loop that allows you to keep putting in numbers and get the correct converted measurement. I want to put an IF statement that will allow the user to type "end" to end the program instead of converting more units of measurement. How would I go about making this work (what python code allows you to exit a written program and can be used in an IF statement.)?</p>
  
  <pre><code>convert=float(25.4)
  while True:
      print("*******MM*******")
      MM=float(input())
      Results=float(MM/convert)
      print("*****Inches*****")
      print("%.3f" % Results)
      print("%.4f" % Results)
      print("%.5f" % Results)
  </code></pre>