Python program def main num 0 show menum def show mearg if
Python program def main (): num = 0 show me(num) def show me(arg): if arg
Solution
The output will be:
10
Explanation:
Initially, n = 0, so the function show_me(0) is called. Since the argument is less than 10, the function is called again with argument 1.
Again, Since the argument is less than 10, the function is called again with argument 2.
So, as long as the function\'s argument is less than 10, it will keep calling itself recursively with new parameter value as 1 + old parameter value.
So, when argument passed = 10, instead of going inside the if block, the control will go inside the else block.
So, 10 will be printed and the function will return back.
