Files

questions / manualGrade / codeUpload / question.html
Edit Download
<pl-question-panel>
  <p>
    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}.
    \]
  </p>
  <p>
    Write a Python function <code>fib</code> that takes a number <code>n</code>
    and returns the n<sup>th</sup> Fibonacci number, $F_n$.
  </p>
  <pl-file-upload file-names="fib.py"></pl-file-upload>
</pl-question-panel>

<pl-submission-panel>
  <pl-file-preview></pl-file-preview>
</pl-submission-panel>