title: Confusing python - Cannot convert string to float
body: <p>I got a value error and even if I try playing around with the code, it doesn't work!</p>
  
  <p>How can I get it right? - I am using Python 3.3.2!</p>
  
  <p>Here is the code: <img src="https://i.stack.imgur.com/PYT80.png" alt="Code"></p>
  
  <p>As you can see, the program asks for how many miles you can walk and gives you a response depending on what you type in.</p>
  
  <p>This is the code in text format:</p>
  
  <pre><code>print("Welcome to Healthometer, powered by Python...")
  miles = input("How many miles can you walk?: ")
  if float(miles) &lt;= 0:
      print("Who do you think you are?!! Go and walk 1000 miles now!")
  elif float(miles) &gt;= 10:
      print("You are very healthy! Keep it up!")
  elif float(miles) &gt; 0 and miles &lt; 10:
      print("Good. Try doing 10 miles")
  else:
      print("Please type in a number!")
      miles = float(input("How many miles can you walk?: "))
      if miles &lt;= 0:
          print("Who do you think you are?!! Go and walk 1000 miles now!")
      elif miles &gt;= 10:
          print("You are very healthy! Keep it up!")
      elif miles &gt; 0 and miles &lt; 10:
          print("Good. Try doing 10 miles")
  </code></pre>