This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calculate_fibonacci(n): | |
""" | |
Calculate the nth number in the Fibonacci sequence. | |
Args: | |
n (int): The position in the sequence (starting from 0) | |
Returns: | |
int: The Fibonacci number at position n | |
""" |