Question 65 error
Question 65 defines f(0) = 1. However, the expected answer for f(5) = 500 is wrong (should be 501). Also, the code assumes f(0) = 0. So either the question should be changed, or the expected answer and the code should be changed.
Please provide a link to that particular question.
yeah the code should be **def f(n): if n==0: return 1 else: return f(n-1)+100
n=int(input()) print(f(n))**
according to the question we have to return 1 for f(0)
Question 65 defines f(0) = 1. However, the expected answer for f(5) = 500 is wrong (should be 501). Also, the code assumes f(0) = 0. So either the question should be changed, or the expected answer and the code should be changed.