Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs220-s23-projects
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDIS
Computer Sciences
Courses
CS220
cs220-s23-projects
Commits
dfac2d11
Commit
dfac2d11
authored
2 years ago
by
Ashwin Maran
Browse files
Options
Downloads
Patches
Plain Diff
bugfixes
parent
78812b5e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p1/p1.ipynb
+13
-13
13 additions, 13 deletions
p1/p1.ipynb
with
13 additions
and
13 deletions
p1/p1.ipynb
+
13
−
13
View file @
dfac2d11
...
...
@@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
d7687212
",
"id": "
26245a58
",
"metadata": {
"cell_type": "code",
"deletable": false,
...
...
@@ -19,7 +19,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
5a9e68fd
",
"id": "
c9a32093
",
"metadata": {
"deletable": false
},
...
...
@@ -36,7 +36,7 @@
},
{
"cell_type": "markdown",
"id": "
1f7148e8
",
"id": "
9125244f
",
"metadata": {
"deletable": false,
"editable": false
...
...
@@ -48,7 +48,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
2506ec80
",
"id": "
aaf28663
",
"metadata": {
"tags": []
},
...
...
@@ -63,7 +63,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
49586bd4
",
"id": "
b6a624b0
",
"metadata": {
"deletable": false,
"editable": false
...
...
@@ -75,7 +75,7 @@
},
{
"cell_type": "markdown",
"id": "
462bcd1f
",
"id": "
e9cbc891
",
"metadata": {
"deletable": false,
"editable": false
...
...
@@ -87,7 +87,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
fdbb5e85
",
"id": "
34e3ebc7
",
"metadata": {
"tags": []
},
...
...
@@ -101,7 +101,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
f431b
8b4",
"id": "
35fe
8b4
d
",
"metadata": {
"deletable": false,
"editable": false
...
...
@@ -113,7 +113,7 @@
},
{
"cell_type": "markdown",
"id": "
f1397a
e4",
"id": "
21f45d
e4",
"metadata": {
"deletable": false,
"editable": false
...
...
@@ -131,7 +131,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
49cef762
",
"id": "
a6f723c8
",
"metadata": {
"cell_type": "code",
"deletable": false,
...
...
@@ -147,20 +147,20 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
f0f8872d
",
"id": "
e12b2177
",
"metadata": {
"cell_type": "code",
"deletable": false,
"editable": false
},
"outputs": [],
"source": [
"# Save your notebook first, then run this cell to export your submission.\n",
"grader.export(pdf=False, run_tests=True)"
]
},
{
"cell_type": "markdown",
"id": "
67c217c2
",
"id": "
1189b824
",
"metadata": {
"deletable": false,
"editable": false
...
...
%% 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:
f431b
8b4 tags:
%% Cell type:code id:
35fe
8b4
d
tags:
```
python
grader
.
check
(
"
q2
"
)
```
%% Cell type:markdown id:
f1397a
e4 tags:
%% Cell type:markdown id:
21f45d
e4 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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment