Python Input Split with a limit range
<pre><code>var1,var2 = input("Enter two digits a and b (0-9):").split(' ')
while True:
    if (0 &lt;= var1 &lt;= 9) and (0 &lt;= var2 &lt;= 9):
        result = var1+var2
    print("The result is: %r." %result)
</code></pre>

<p>I use Spyder Python 3.5 to write this code and try to run it. However, this code does not work. </p>

<p>It reveals that " (1) var1,var2 = input("Enter two digits a and b (0-9):").split(''); (2) TypeError: 'str' object is not callable" </p>