When I wrote this code in python-2.7 I got a message that runs again and again, can someone tell me what's wrong with it?
num = raw_input("enter your number : ")
def calc():
if num == "1":
print "ok"
else:
print "right"
calc()
calc()
It prints ok
or right
over and over.
So what should I do if I want to go back to the initial state (asking for input) after each print?