Q. Figure out the problem with following code that may occur when it is run?
def recur(p) :
if p == 0:
print("##")
else:
recur(p)
p=p-1
recur(5)
Answer =
def recur(p) :
if p == 0:
print ("##")
else:
return recur(p-1)
recur(5)
def recur(p) :
if p == 0:
print ("##")
else:
return recur(p-1)
recur(5)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )