You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
{
2
2
"cells": [
3
3
{
4
+
"attachments": {},
4
5
"cell_type": "markdown",
5
6
"metadata": {
6
7
"slideshow": {
@@ -43,7 +44,7 @@
43
44
"# Watch this video walkthrough as you work\n",
44
45
"## The big green circle play icon below links to a video walkthrough of this tutorial\n",
45
46
"When you see a video walkthrough in the tutorials, click on it and watch it as you work to have a guided lesson on how to complete the tasks and learn the materials. This walkthrough covers tasks 1-5.\n",
Copy file name to clipboardExpand all lines: Python Absolute Beginner/Module_1.2_Required_Code.ipynb
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
{
2
2
"cells": [
3
3
{
4
+
"attachments": {},
4
5
"cell_type": "markdown",
5
6
"metadata": {
6
7
"collapsed": true
7
8
},
8
9
"source": [
9
10
"# Module 1 Required Coding Activity \n",
10
11
"Work through the Module 1 Tutorials and Practices prior to attempting this activity.\n",
12
+
"Notice that this activity is logically very similar to the Allergy Check activity in the practice module.\n",
13
+
"Remmeber, you are not allowed to work with others on this code or post it in Teams for help.\n",
14
+
"You can ask related questions about the practice module.\n",
11
15
"\n",
12
16
"> **NOTE:** This program requires print output and code syntax used in module 1\n",
13
17
"\n",
@@ -16,15 +20,16 @@
16
20
"| **NOTE:** This program requires `print` output and using code syntax used in module 1 such as variable assignment, `input`, `in` keyword, `.lower()` or `.upper()` method | \n",
17
21
"\n",
18
22
"\n",
19
-
"## Program: Allergy Check \n",
23
+
"## Program: Name Check \n",
20
24
"\n",
21
-
"1. **[ ]** get user **`input`** for categories of food eaten in the last 24 hours \n",
25
+
"1. **[ ]** get user **`input`** for names of people met in the last 24 hours \n",
22
26
" save in a variable called **input_test** \n",
23
-
"2. **[ ]** print **`True`** if \"dairy\" is in the **input_test** string \n",
27
+
"2. **[ ]** print **`True`** if \"John\" is in the **input_test** string \n",
24
28
"3. **[ ]** Test the code so far \n",
25
-
"4. **[ ]** repeat the process checking the input for \"nuts\", **challenge** add \"Seafood\" and \"chocolate\"\n",
29
+
"4. **[ ]** repeat the process checking the input for your name, \n",
30
+
"5. **[ ] challenge:** add two more names \n",
26
31
"5. **[ ]** Test your code \n",
27
-
"6. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"Nuts\", \"NuTs\", \"NUTS\" or \"nuts\"\n"
32
+
"6. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"mary\", \"Mary\", \"MARY\" or \"MaRy\"\n"
28
33
]
29
34
},
30
35
{
@@ -35,27 +40,22 @@
35
40
},
36
41
"outputs": [],
37
42
"source": [
38
-
"# Create Allergy check code\n",
43
+
"# Create name check code\n",
39
44
"\n",
40
45
"# [ ] get input for input_test variable\n",
41
46
"\n",
42
-
"# [ ] print \"True\" message if \"dairy\" is in the input or False message if not\n",
47
+
"# [ ] print \"True\" message if \"John\" is in the input or False message if not\n",
43
48
"\n",
44
49
"\n",
45
-
"# [ ] print True message if \"nuts\" is in the input or False if not\n",
50
+
"# [ ] print True message if your name is in the input or False if not\n",
46
51
"\n",
47
52
"\n",
48
-
"# [ ] Challenge: Check if \"seafood\" is in the input - print message\n",
53
+
"# [ ] Challenge: Check if another person's name is in the input - print message\n",
49
54
"\n",
50
55
"\n",
51
-
"# [ ] Challenge: Check if \"chocolate\" is in the input - print message"
56
+
"# [ ] Challenge: Check if a fourth person's name is in the input - print message"
Copy file name to clipboardExpand all lines: Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@
30
30
"## Calling Functions with Arguments: print() is a function built in to Python!\n",
31
31
"Functions are used for code tasks that are intended to be reused. For example, you have already used the print() function and passed it **arguments** by putting strings and variables into its parentheses. \n",
Copy file name to clipboardExpand all lines: Python Absolute Beginner/Module_3.2_Required_Code.ipynb
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
{
2
2
"cells": [
3
3
{
4
+
"attachments": {},
4
5
"cell_type": "markdown",
5
6
"metadata": {
6
7
"collapsed": true
@@ -11,9 +12,10 @@
11
12
"\n",
12
13
"This is an activity based on code similar to the Jupyter Notebook **`Practice_MOD03_1-4_IntroPy.ipynb`** and **`Practice_MOD03_1-5_IntroPy.ipynb`** which you may have completed as practice.\n",
13
14
"\n",
14
-
"> **NOTE:** This program requires the use of **`if, elif, else`**, and casting between strings and numbers. The program should use the various code syntax covered in module 3. \n",
15
-
"> \n",
15
+
">This program requires the use of **`if, elif, else`**, and casting between strings and numbers. The program should use the various code syntax covered in module 3. \n",
16
+
"> \n",
16
17
">The program must result in print output using numeric input similar to that shown in the sample below.\n",
18
+
">You must include your full name in the input prompt. See sample input below for more detail.\n",
17
19
"\n",
18
20
"## Program: Cheese Order Function \n",
19
21
"- define function with max, min, price, and order_amount parameters\n",
@@ -29,17 +31,17 @@
29
31
"\n",
30
32
"Sample input and output:\n",
31
33
"```\n",
32
-
"Enter cheese order weight (numeric value): 113\n",
34
+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 113\n",
33
35
"113.0 is more than currently available stock\n",
34
36
"```\n",
35
37
"\n",
36
38
"```\n",
37
-
"Enter cheese order weight (numeric value): .15\n",
39
+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): .15\n",
38
40
"0.15 is below minimum order amount\n",
39
41
"``` \n",
40
42
"\n",
41
43
"```\n",
42
-
"Enter cheese order weight (numeric value): 2\n",
44
+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 2\n",
"|This program requires the use of<ul><li>**`while`** loop to get non-empty input</li><li>**`if, else`**</li><li>**`if, else`** (nested)</li><li>**`.isdigit()`** check for integer only input</li><li>**`.isalpha()`** check for alphabetic only input</li></ul><br/>The program should **only** use code syntax covered in modules 1 - 4.<br/><br/>The program must result in printed message analysis of the input. |\n",
17
+
"|This program requires the use of<ul><li>**`while`** loop to get non-empty input</li><li>**`if, else`**</li><li>**`if, else`** (nested)</li><li>**`.isdigit()`** check for integer only input</li><li>**`.isalpha()`** check for alphabetic only input</li></ul><br/>The program should **only** use code syntax covered in modules 1 - 4.<br/><br/>The program must result in printed message analysis of the input. Be sure to include your full name in the input prompt. See the sample input for more detail. |\n",
17
18
"\n",
18
19
"\n",
19
20
"\n",
@@ -34,37 +35,35 @@
34
35
"#### Sample input and output: \n",
35
36
"enter nothing (twice) then enter a word \n",
36
37
"```\n",
37
-
"enter word or integer: \n",
38
-
"enter word or integer: \n",
39
-
"enter word or integer: Hello\n",
38
+
"[YOUR FULL NAME GOES HERE], enter word or integer: \n",
39
+
"[YOUR FULL NAME GOES HERE], enter word or integer: \n",
40
+
"[YOUR FULL NAME GOES HERE], enter word or integer: Hello\n",
40
41
"\"Hello\" is all alphabetical characters!\n",
41
42
"\n",
42
43
"``` \n",
43
44
"----- \n",
44
45
"\n",
45
46
"alphabetical word input \n",
46
47
"```\n",
47
-
"enter word or integer: carbonization\n",
48
+
"[YOUR FULL NAME GOES HERE], enter word or integer: carbonization\n",
48
49
"\"carbonization\" is all alphabetical characters!\n",
49
50
"\n",
50
51
"``` \n",
51
52
"----- \n",
52
53
"\n",
53
54
"numeric inputs\n",
54
55
"```\n",
55
-
"enter word or integer: 30\n",
56
+
"[YOUR FULL NAME GOES HERE], enter word or integer: 30\n",
56
57
"30 is a smaller number than expected\n",
57
58
"\n",
58
-
"enter word or integer: 1024\n",
59
+
"[YOUR FULL NAME GOES HERE], enter word or integer: 1024\n",
59
60
"1024 is a pretty big number\n",
60
61
"``` \n",
61
62
"----- \n",
62
63
"\n",
63
64
"\n",
64
-
"### loop until non-empty input is submitted \n",
65
-
"This diagram represents the input part of the assignment - it is the loop to keep prompting the user for input until they submit some input (non-empty). \n",
66
-
"\n",
67
-
" \n",
65
+
"### Loop until non-empty input is submitted \n",
66
+
"In the input part of the assignment keep prompting the user for input until they submit some input (non-empty). \n",
68
67
"\n",
69
68
"Once the user gives input with characters use the input in calling the str_analysis() function.\n",
70
69
"\n",
@@ -83,47 +82,47 @@
83
82
]
84
83
},
85
84
{
85
+
"cell_type": "code",
86
+
"execution_count": null,
86
87
"metadata": {
87
88
"trusted": false
88
89
},
89
-
"cell_type": "code",
90
+
"outputs": [],
90
91
"source": [
91
92
"# [ ] create, call and test the str_analysis() function \n",
92
93
"\n",
93
94
"\n",
94
95
"\n",
95
96
"\n"
96
-
],
97
-
"execution_count": null,
98
-
"outputs": []
97
+
]
99
98
},
100
99
{
101
-
"metadata": {},
102
100
"cell_type": "markdown",
101
+
"metadata": {},
103
102
"source": [
104
103
"Submit this by creating a python file (.py) and submitting it in D2L. Be sure to test that it works."
Copy file name to clipboardExpand all lines: Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
{
2
2
"cells": [
3
3
{
4
+
"attachments": {},
4
5
"cell_type": "markdown",
5
6
"metadata": {
6
7
"collapsed": true
@@ -11,9 +12,15 @@
11
12
"\n",
12
13
"Complete all tutorials, practices and required code in the course prior to attempting this activity.\n",
13
14
"\n",
14
-
"| Some Assignment Requirements |\n",
15
-
"|:-------------------------------|\n",
16
-
"|This program requires the use of<ul><li>**`while`** loop</li><li>**`if, elif, else`**</li><li>**`if,else`** (nested)</li><li>**casting** of type, between strings and numbers</li></ul><br/>The program should **only** use code syntax covered in modules 1 - 4.<br/><br/>The program must result in print output using the numeric input, similar to that shown in the samples displaying \"Items\" and \"Total\". |\n",
15
+
"**This program requires the use of:**\n",
16
+
"<ul>\n",
17
+
"<li>functional programming: write and call a function</li>\n",
18
+
"<li>**`while`** loop</li>\n",
19
+
"<li>**`if, elif, else`**</li>\n",
20
+
"<li>**`if,else`** (nested)</li>\n",
21
+
"<li>**casting** of type, between strings and numbers</li></ul>\n",
22
+
"<br/>The program should **only** use code syntax covered in modules 1 - 4.<br/>\n",
23
+
"<br/>The program must result in print output using the numeric input, similar to that shown in the samples displaying \"Items\" and \"Total\". If must also have a statement after the Total row indicating who made the calculation. This name must be your full name. See the sample output for clarity.\n",
0 commit comments