Skip to content
Snippets Groups Projects
Commit dfac2d11 authored by Ashwin Maran's avatar Ashwin Maran
Browse files

bugfixes

parent 78812b5e
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:d7687212 tags:
%% Cell type:code id:26245a58 tags:
``` python
# import and initialize otter
import otter
grader = otter.Notebook("p1.ipynb")
```
%% Cell type:code id:5a9e68fd tags:
%% Cell type:code id:c9a32093 tags:
``` python
# PLEASE FILL IN THE DETAILS
# Enter none if you don't have a project partner
# project: p1
# submitter: NETID1
# partner: none
# hours: ????
```
%% Cell type:markdown id:1f7148e8 tags:
%% Cell type:markdown id:9125244f tags:
**Question 1:** "Hello, World!" program.
%% Cell type:code id:2506ec80 tags:
%% Cell type:code id:aaf28663 tags:
``` python
name = "World"
greeting = "Hello, " + name + "!"
greeting
```
%% Cell type:code id:49586bd4 tags:
%% Cell type:code id:b6a624b0 tags:
``` python
grader.check("q1")
```
%% Cell type:markdown id:462bcd1f tags:
%% Cell type:markdown id:e9cbc891 tags:
**Question 2:** Compute current year.
%% Cell type:code id:fdbb5e85 tags:
%% Cell type:code id:34e3ebc7 tags:
``` python
curr_year = 45 * 45 - 2
curr_year
```
%% Cell type:code id:f431b8b4 tags:
%% Cell type:code id:35fe8b4d tags:
``` python
grader.check("q2")
```
%% Cell type:markdown id:f1397ae4 tags:
%% Cell type:markdown id:21f45de4 tags:
## Submission
Now, click on `Kernel` -> `Restart & Run All` to run all the cells in the notebook.
The cells below will automatically save your notebook after the previous cells are run, and generate a zip file for you to submit.
**SUBMISSION INSTRUCTIONS**:
The zipfile automatically gets downloaded. You should have received a GradeScope invite - please accept it.
Login to GradeScope and upload the zipfile. Check otter results as soon as auto-grader gets completed.
%% Cell type:code id:49cef762 tags:
%% Cell type:code id:a6f723c8 tags:
``` python
# running this cell will create a new save checkpoint for your notebook
from IPython.display import display, Javascript
display(Javascript('IPython.notebook.save_checkpoint();'))
```
%% Cell type:code id:f0f8872d tags:
%% Cell type:code id:e12b2177 tags:
``` python
# Save your notebook first, then run this cell to export your submission.
grader.export(pdf=False, run_tests=True)
```
%% Cell type:markdown id:67c217c2 tags:
%% Cell type:markdown id:1189b824 tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment