Question: This function is supposed to sum up the numbers from 1 to n. It gives the correct answer always (True or False)? def sum(n): If

This function is supposed to sum up the numbers from 1 to n. It gives the correct answer always (True or False)? def sum(n): If n == 0 or n - 1: return 1 else: return nsum(n+1) True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
