intermediate
Explain a Python Function
Get a step-by-step explanation of a specific Python code snippet.
📝 Nội dung Prompt
Explain the following Python code line by line:
def calculate_fibonacci(n):
if n <= 0:
return 0
elif n == 1:
return 1
else:
return calculate_fibonacci(n-1) + calculate_fibonacci(n-2)
Also explain the time complexity of this recursive approach.