What is the output of the following Python code:
def testing (num):
if (num > 50):
return (num - 2)
return testing(testing( num + 10));
print(testing(30))
a) 50
b) 52
c) 48
d) Infinite recursion
Answers
Answered by
10
name the chapter and class
Follow me
Answered by
0
infinity recursion 51-2=49 ,49+10=59
Similar questions
Math,
3 months ago
English,
3 months ago
English,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago