title: Why do I get "Unorderable types: int() < str()" or "'<' not supported between instances of 'int' and 'str'"?
body: <p>I have this code:</p>
  <pre><code>def main():
      print(&quot;Let me Retire Financial Calculator&quot;)
      deposit = input(&quot;Please input annual deposit in dollars: $&quot;)
      rate = input (&quot;Please input annual rate in percentage: %&quot;)
      time = input(&quot;How many years until retirement?&quot;)
      x = 0
      value = 0
      while (x &lt; time):
          x = x + 1
          value = (value * rate) + deposit
          print(&quot;The value of your account after&quot; +str(time) + &quot;years will be $&quot; + str(value))
  </code></pre>
  <p>I get this error message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/myname/Documents/Let Me Retire.py&quot;, line 8, in &lt;module&gt;
      while (x &lt; time):
  TypeError: unorderable types: int() &lt; str()
  </code></pre>
  <p>How can I fix it?</p>