title: Multiple conditions on while loop python .isdigit()
body: <p>I am trying to create a program that stores a user input between 1 and 0.</p>
  
  <p>It works fine when I only input numbers, however, the program fails when anything else is inputted.</p>
  
  <p>I tried adding a third clause into the while statement but that made the whole program fail.</p>
  
  <p>I suspect <code>float(input)</code> is the erroneous code -- When I don't have that, the sums later on in the program fail, suggesting that the variable is just a string.</p>
  
  <p>What's wrong here?</p>
  
  <pre><code>#  Juvenile survival rate must be between 0 and 1 #
  juvenile_survival = 3
  while juvenile_survival &lt; 0 or juvenile_survival &gt; 1 or juvenile_survival.isdigit() == False:
      juvenile_survival = float(input("What is your juvenile survival rate? Remember this should be between 0 and 1"))
  print("Your juvenile survival rate is ", juvenile_survival)
  </code></pre>