Repeat python function and return value
<p>I am trying to have a function repeat itself if a certain criteria is not met. For instance:</p>

<pre><code>def test():
    print "Hello",
    x = raw_input()
    if x in '0123456789':
        return x
    test()
</code></pre>

<p>In this program if you type a number the first time, it will return the number. If you type some non-number, it will repeat itself as desired. However, if you type some non-numbers and then a number, it will return nothing. Why is that the case?</p>
