Skip to content

Instantly share code, notes, and snippets.

View steve3535's full-sized avatar

kwakou-steve steve3535

View GitHub Profile
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
"""