My first function returns (a, b). The second function must control it if (a, b) are True or False. If it is False call again the first function until the user put in right numbers.
It dose not work. Is it a good idea to do that in this way or not?
def lasin (): a=int( input ("Put in a 1<digit<53\n")) b=int( input ("put in a 1<digit<53\n")) return a,b def kontroll(a,b): while True: try: if a>1 and a<53: break elif b>1 and b<53: break except NameError: print "Try again" lasin()
Thank alot for help and tips!