title: Wrong data types python
body: <p>Hi and thanks for your time. I need to add the wrong data types in my code that says that it should be an invalid operation when I am using strings. I try to add the break statement in for loop, but I cannot go through. I hope you can help me.</p>
  <p>Code:</p>
  <pre><code> def userInput():
      upper = int(input(&quot;Enter UppperNumber from column: &quot;))
      if upper &lt; 0:
          print(upper,&quot;Nice, it is in range&quot;)
      elif upper &lt; 256:
          print(upper, &quot;Nice, it is in range&quot;)
      else:
          print(
              &quot;You must use only numbers which range is : 0 - 255&quot;)
          upper = None# we define upperbit as nothing and restart the function, same applies with lowerbot
          userInput()
  
      lower = int(input(&quot;Enter LowerNumber from column: &quot;))
      if lower &lt; 0:
          print(lower, &quot;Nice, it is in range&quot;)
      elif lower &lt; 256:
          print(lower, &quot;Nice, it  is in range&quot;)
      else:
          print(
              &quot;You must use only numbers which range is : 0 - 255&quot;)
          lower_bit_int = None
          userInput()
  </code></pre>