✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How many times will the marked line in the following code run when the input integer is n?
def mystery(n):
if n <= 1:
return 1
else:
return mystery(n-1) + mystery(n-2) # This line
Answer in terms of n
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!