Question: Describe what this function does. Try different numbers as input. def test(num): if num > 0: return test(num-1) + num else: return 0
Describe what this function does. Try different numbers as input.

def test(num): if num > 0: return test(num-1) + num else: return 0
Step by Step Solution
3.29 Rating (164 Votes )
There are 3 Steps involved in it
This method recursively calls itself w... View full answer
Get step-by-step solutions from verified subject matter experts
