Sagebrush · Examples · Notebooks

Homework for Gradescope

A short homework with four exercises, to try File > Gradescope template… (instructors) and File > PDF for Gradescope… (students).

notebook · Python · intro · by Sagebrush · MIT license

teaching

Download (ZIP)Source on GitHub

Preview

Homework 1

Name:

I collaborated with:

Answer each exercise below its heading. When you're done, choose File ▸ PDF for Gradescope… and upload the PDF to Gradescope.

Exercise 1. Sums

Compute with a loop, and check it against the formula .

# your code here

Exercise 2. A picture

Plot and for on one set of axes, with a legend.

import numpy as np
import matplotlib.pyplot as plt

# your code here

Exercise 3. Fibonacci numbers

Print the first 30 Fibonacci numbers, one per line, and the ratio of each to the one before it.

# your code here

Exercise 4. In words

In two or three sentences: what does the ratio in Exercise 3 approach, and why?

Your answer here.

Files

Open the ZIP's notebook in Sagebrush (File, Open) to run and change it.