Demo: Fibonacci function, file upload, manual grading

The Fibonacci numbers are 1, 1, 2, 3, 5, 8, ..., where each number is the sum of the two before it. These are numbered $F_1, F_2, \ldots$, and \[ F_n = F_{n-1} + F_{n-2}. \]

Write a Python function fib that takes a number n and returns the Fibonacci number at index n, i.e., $F_n$.

Drop files here or click to upload.
Only the files listed below will be accepted—others will be ignored.
The combined size limit of all uploaded files is 5MB.
Files
Correct answer
Student view placeholder
In student views this area is used for assessment and score info.
Staff information
Staff user:
Dev User
dev@example.com

Question:
Title:
Demo: Fibonacci function, file upload, manual grading
Started at:
2024-09-19 17:52:29 (CDT)
Duration:
0 s
Show/Hide answer
{}