MCQs > IT & Programming > Python > Output of following code? def f2(n, result): if n == 0: return 0 else: return f2(n - 1, n + result) print(f2(2, 0))

Python MCQs

What will be the output of following code? def f2(n, result): if n == 0: return 0 else: return f2(n - 1, n + result) print(f2(2, 0))

Answer

Correct Answer: 0

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it