Please write a Python function named `fibonacci` that takes an integer `n` and returns the nth number in the Fibonacci sequence. The function should handle `n=0` correctly. Do not include any example usage, just the function itself.
