Skip to content

Commit 4c9084d

Browse files
committed
Last Update: 2020-01-04 21:33
1 parent a5535e1 commit 4c9084d

File tree

23 files changed

+321
-54
lines changed

23 files changed

+321
-54
lines changed

content/lessons/01/Class-Coding-Lab/CCL-Intro-To-Python-Programming.ipynb

Lines changed: 61 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,66 @@
88
"\n",
99
"The goals of this lab are to help you to understand:\n",
1010
"\n",
11-
"1. the Jupyter programming environments\n",
12-
"1. basic Python Syntax\n",
13-
"2. variables and their use\n",
14-
"3. how to sequence instructions together into a cohesive program\n",
15-
"4. the input() function for input and print() function for output\n"
11+
"1. How to turn in your lab and homework\n",
12+
"2. the Jupyter programming environments\n",
13+
"3. basic Python Syntax\n",
14+
"4. variables and their use\n",
15+
"5. how to sequence instructions together into a cohesive program\n",
16+
"6. the input() function for input and print() function for output\n"
17+
]
18+
},
19+
{
20+
"cell_type": "markdown",
21+
"metadata": {},
22+
"source": [
23+
"## How To Turn In Your Lab and Homework\n",
24+
"\n",
25+
"We will use UC Berkley's OK Python system to turn in your homework and labs. The process is simple.\n",
26+
"\n",
27+
"\n",
28+
"### One-Time Setup: Creating Your Ok Account\n",
29+
"\n",
30+
"First, sign up for the service using your Syracuse University Google account. To learn how to setup your SU Google acccount, visit https://ols.syr.edu/google-account-for-syracuse-university/\n",
31+
"\n",
32+
"1. Once you have your SU Google account, visit https://okpy.org and click the **Student Login** button.\n",
33+
"2. Login with `[email protected]` where `netid` is your SU NetID. Do not use your personal google account. If you are logged in with your personal account, select the **Use another account** option.\n",
34+
"\n",
35+
"### Submission Process for Every Homework and Lab\n",
36+
"\n",
37+
"The submission process is the same for every Homework and Lab:\n",
38+
"\n",
39+
"There will be Python code at the top of the notebook file. Runing it will generate a link and provide an access code to connect your notebook to the Ok Assignment. \n",
40+
"\n",
41+
"Try This now, by running this cell. To run the cell, click on it then click the `>| Run` button in the toolbar."
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"metadata": {},
48+
"outputs": [],
49+
"source": [
50+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
51+
"from ist256 import okclient\n",
52+
"ok = okclient.Lab()"
53+
]
54+
},
55+
{
56+
"cell_type": "markdown",
57+
"metadata": {},
58+
"source": [
59+
"After you link the notebook to the assignment, you can run `ok.submit()` to save your work to the OK System. You are welcome to do this multiple times, as the most recent submission will be graded. \n",
60+
"\n",
61+
"Try this now:"
62+
]
63+
},
64+
{
65+
"cell_type": "code",
66+
"execution_count": null,
67+
"metadata": {},
68+
"outputs": [],
69+
"source": [
70+
"ok.submit()"
1671
]
1772
},
1873
{
@@ -437,7 +492,7 @@
437492
"name": "python",
438493
"nbconvert_exporter": "python",
439494
"pygments_lexer": "ipython3",
440-
"version": "3.7.4"
495+
"version": "3.6.6"
441496
},
442497
"toc": {
443498
"base_numbering": 1,

content/lessons/02/Class-Coding-Lab/CCL-Variables-And-Types.ipynb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
10+
"from ist256 import okclient\n",
11+
"ok = okclient.Lab()"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -367,6 +378,18 @@
367378
"Answer: \n",
368379
"\n"
369380
]
381+
},
382+
{
383+
"cell_type": "code",
384+
"execution_count": null,
385+
"metadata": {
386+
"collapsed": true
387+
},
388+
"outputs": [],
389+
"source": [
390+
"# to save and turn in your work, execute this cell. Your latest submission will be graded. \n",
391+
"ok.submit()"
392+
]
370393
}
371394
],
372395
"metadata": {

content/lessons/03/Class-Coding-Lab/CCL-Conditionals.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
10+
"from ist256 import okclient\n",
11+
"ok = okclient.Lab()"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -383,7 +394,10 @@
383394
"execution_count": null,
384395
"metadata": {},
385396
"outputs": [],
386-
"source": []
397+
"source": [
398+
"# to save and turn in your work, execute this cell. Your latest submission will be graded. \n",
399+
"ok.submit()"
400+
]
387401
}
388402
],
389403
"metadata": {

content/lessons/03/Now-You-Code/NYC2-Paint-Matching.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@
103103
"`--== Write Your Reflection Below Here ==--`\n",
104104
"\n"
105105
]
106+
},
107+
{
108+
"cell_type": "code",
109+
"execution_count": null,
110+
"metadata": {},
111+
"outputs": [],
112+
"source": []
106113
}
107114
],
108115
"metadata": {

content/lessons/04/Class-Coding-Lab/CCL-Iterations.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
10+
"from ist256 import okclient\n",
11+
"ok = okclient.Lab()"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -270,7 +281,10 @@
270281
"execution_count": null,
271282
"metadata": {},
272283
"outputs": [],
273-
"source": []
284+
"source": [
285+
"# to save and turn in your work, execute this cell. Your latest submission will be graded. \n",
286+
"ok.submit()"
287+
]
274288
}
275289
],
276290
"metadata": {

content/lessons/04/Now-You-Code/NYC4-Guess-A-Number.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"give you a hint of higher or lower. This process repeats until you guess\n",
1414
"the number, after which the computer reports the number of guesses it took you.\n",
1515
"\n",
16+
"```\n",
1617
"For Example:\n",
1718
"\n",
1819
"I'm thinking of a number between 1 and 10...\n",
@@ -22,6 +23,7 @@
2223
"Too high. Guess lower.\n",
2324
"Your guess: 6\n",
2425
"You guessed it in 3 tries.\n",
26+
"```\n",
2527
"\n",
2628
"Your loop should continue until your input guess equals the\n",
2729
"computer generated random number.\n",

content/lessons/05/Class-Coding-Lab/CCL-Functions.ipynb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
10+
"from ist256 import okclient\n",
11+
"ok = okclient.Lab()"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -544,6 +555,16 @@
544555
"Answer: \n",
545556
"\n"
546557
]
558+
},
559+
{
560+
"cell_type": "code",
561+
"execution_count": null,
562+
"metadata": {},
563+
"outputs": [],
564+
"source": [
565+
"# to save and turn in your work, execute this cell. Your latest submission will be graded. \n",
566+
"ok.submit()"
567+
]
547568
}
548569
],
549570
"metadata": {

content/lessons/05/Now-You-Code/NYC2-Course-Grade.ipynb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414
{
1515
"cell_type": "code",
1616
"execution_count": null,
17-
"metadata": {
18-
"collapsed": true
19-
},
17+
"metadata": {},
2018
"outputs": [],
2119
"source": [
2220
"print(\"IST256 Grade Calculator\")\n",
23-
"points = int(input(\"Enter total points out of 600:\"))\n",
21+
"points = int(input(\"Enter total points out of 600: \"))\n",
2422
"if points >= 570:\n",
2523
" grade = \"A\"\n",
2624
"elif points >= 540:\n",
@@ -42,7 +40,7 @@
4240
"else:\n",
4341
" grade = \"F\"\n",
4442
"\n",
45-
"print(\"Grade:\", grade) \n"
43+
"print(f\"Grade: {grade}\") \n"
4644
]
4745
},
4846
{
@@ -73,7 +71,7 @@
7371
},
7472
{
7573
"cell_type": "code",
76-
"execution_count": 2,
74+
"execution_count": null,
7775
"metadata": {},
7876
"outputs": [],
7977
"source": [
@@ -109,7 +107,7 @@
109107
"metadata": {},
110108
"outputs": [],
111109
"source": [
112-
"# Step 3: Write tests. The first two tests were written for you. You must write the rest\n",
110+
"# Step 3: Write tests. The first two tests were written for you. You must write the rest!\n",
113111
"\n",
114112
"print(\"WHEN point='570' We EXPECT GetGrade(points) to return A ACTUAL:\", GetGrade(570))\n",
115113
"print(\"WHEN point='540' We EXPECT GetGrade(points) to return A- ACTUAL:\", GetGrade(540))\n",
@@ -137,7 +135,7 @@
137135
},
138136
{
139137
"cell_type": "code",
140-
"execution_count": 4,
138+
"execution_count": null,
141139
"metadata": {},
142140
"outputs": [],
143141
"source": [

content/lessons/05/Now-You-Code/NYC4-Sleep-In.ipynb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,9 @@
6666
},
6767
{
6868
"cell_type": "code",
69-
"execution_count": 6,
69+
"execution_count": 1,
7070
"metadata": {},
71-
"outputs": [
72-
{
73-
"name": "stdout",
74-
"output_type": "stream",
75-
"text": [
76-
"Enter Radius: 1\n",
77-
"A circle with radius 1.000000 has area 3.141593 and circumfrence 6.283185\n"
78-
]
79-
}
80-
],
71+
"outputs": [],
8172
"source": [
8273
"## TODO: Write the solution here\n",
8374
"\n"

content/lessons/06/Class-Coding-Lab/CCL-Strings.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# run this code to login to https://okpy.org/ and setup the assignment for submission\n",
10+
"from ist256 import okclient\n",
11+
"ok = okclient.Lab()"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -307,7 +318,10 @@
307318
"execution_count": null,
308319
"metadata": {},
309320
"outputs": [],
310-
"source": []
321+
"source": [
322+
"# to save and turn in your work, execute this cell. Your latest submission will be graded. \n",
323+
"ok.submit()"
324+
]
311325
}
312326
],
313327
"metadata": {

0 commit comments

Comments
 (0)