Are you sure you're getting this? Click the correct answer from the options.
Question 2
Given the following recursive function, will it iterate infinitely if we call recur(5)
?
PYTHON
1def recur(num):
2 if num == 1:
3 return num
4 else:
5 return recur(num-1)+recur(num-3)
Click the option that best answers the question.
- True
- False