SQLDAXExcelPython
Leaderboard
Core PythonEasy10 points

Fibonacci numbers

Complete fibonacci(n) so it returns the first n Fibonacci numbers, starting 0, 1, 1, 2, 3.

How your answer is tested

After your code, this runs and its result is checked:

result = fibonacci(10)
Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.