I am trying to have a function repeat itself if a certain criteria is not met. For instance:
def test():
print "Hello",
x = raw_input()
if x in '0123456789':
return x
test()
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?
test()withreturn test().