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

update p1 image

parent 8e05e684
No related branches found
No related tags found
No related merge requests found
p1/images/gradescope.png

193 KiB | W: | H:

p1/images/gradescope.png

42.4 KiB | W: | H:

p1/images/gradescope.png
p1/images/gradescope.png
p1/images/gradescope.png
p1/images/gradescope.png
  • 2-up
  • Swipe
  • Onion skin
%% Cell type:code id:46565f80 tags: %% Cell type:code id:e9822716 tags:
``` python ``` python
# import and initialize otter # import and initialize otter
import otter import otter
grader = otter.Notebook("p1.ipynb") grader = otter.Notebook("p1.ipynb")
``` ```
%% Cell type:code id:2d41a342 tags: %% Cell type:code id:e4b6309b tags:
``` python ``` python
import public_tests import public_tests
``` ```
%% Cell type:code id:ace5a27b tags: %% Cell type:code id:cfe0ae9d tags:
``` python ``` python
# PLEASE FILL IN THE DETAILS # PLEASE FILL IN THE DETAILS
# project: p1 # project: p1
# submitter: NETID1 # submitter: NETID1
# hours: ???? # hours: ????
``` ```
%% Cell type:markdown id:4195bd59 tags: %% Cell type:markdown id:dc7cbb3a tags:
## Project 1: Introduction ## Project 1: Introduction
%% Cell type:markdown id:bfa2ea29 tags: %% Cell type:markdown id:8f7b8c7a tags:
**Question 1:** "Hello, World!" program. **Question 1:** "Hello, World!" program.
%% Cell type:code id:01d22ad1 tags: %% Cell type:code id:fa84f25f tags:
``` python ``` python
name = "World" name = "World"
greeting = "Hello, " + name + "!" greeting = "Hello, " + name + "!"
greeting greeting
``` ```
%% Cell type:code id:ae733300 tags: %% Cell type:code id:abc13ce8 tags:
``` python ``` python
grader.check("q1") grader.check("q1")
``` ```
%% Cell type:markdown id:69e9a61e tags: %% Cell type:markdown id:97b6afc8 tags:
**Question 2:** Compute the current year. **Question 2:** Compute the current year.
%% Cell type:code id:9625e543 tags: %% Cell type:code id:9700cc72 tags:
``` python ``` python
curr_year = 45 * 45 - 2 curr_year = 45 * 45 - 2
curr_year curr_year
``` ```
%% Cell type:code id:6edd04c9 tags: %% Cell type:code id:f5ce47c7 tags:
``` python ``` python
grader.check("q2") grader.check("q2")
``` ```
%% Cell type:markdown id:42c3baae tags: %% Cell type:markdown id:6827f83e tags:
## Submission ## Submission
Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!** Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**
**SUBMISSION INSTRUCTIONS**: **SUBMISSION INSTRUCTIONS**:
1. **Upload** the zipfile to Gradescope. 1. **Upload** the zipfile to Gradescope.
2. Check **Gradescope** results as soon as the auto-grader execution gets completed. 2. Check **Gradescope** results as soon as the auto-grader execution gets completed.
3. Your **final score** for this project is the score that you see on **Gradescope**. 3. Your **final score** for this project is the score that you see on **Gradescope**.
4. You are **allowed** to resubmit on Gradescope as many times as you want to. 4. You are **allowed** to resubmit on Gradescope as many times as you want to.
5. **Contact** a TA/PM if you lose any points on Gradescope for any **reasons**. 5. **Contact** a TA/PM if you lose any points on Gradescope for any **reasons**.
%% Cell type:code id:1e4cdaf9 tags: %% Cell type:code id:1d5cc5d1 tags:
``` python ``` python
# Save your notebook first, then run this cell to export your submission. # Save your notebook first, then run this cell to export your submission.
grader.export(pdf=False, run_tests=True) grader.export(pdf=False, run_tests=True)
``` ```
%% Cell type:markdown id:6eb897bb tags: %% Cell type:markdown id:b8061b2a 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