Skip to content

Commit fbd46fe

Browse files
committed
Updated required codes to include names
1 parent cedba42 commit fbd46fe

30 files changed

+165
-80
lines changed

Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"slideshow": {
@@ -43,7 +44,7 @@
4344
"# Watch this video walkthrough as you work\n",
4445
"## The big green circle play icon below links to a video walkthrough of this tutorial\n",
4546
"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",
46-
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/iPU4aJEylEA)"
47+
"[![view video](extras/green-play-button.svg)](https://youtu.be/iPU4aJEylEA)"
4748
]
4849
},
4950
{
@@ -643,6 +644,7 @@
643644
]
644645
},
645646
{
647+
"attachments": {},
646648
"cell_type": "markdown",
647649
"metadata": {
648650
"slideshow": {
@@ -661,7 +663,7 @@
661663
"license_plate = \"123A\" #license_plate initialized as a string\n",
662664
"```\n",
663665
"# Walkthrough video for tasks 6-12\n",
664-
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/y59XBWNTM_Y)\n",
666+
"[![view video](extras/green-play-button.svg)](https://youtu.be/y59XBWNTM_Y)\n",
665667
"\n",
666668
"### Variables can start initialized as an Integer number data type \n",
667669
">```python \n",
@@ -3352,7 +3354,7 @@
33523354
"name": "python",
33533355
"nbconvert_exporter": "python",
33543356
"pygments_lexer": "ipython3",
3355-
"version": "3.8.8"
3357+
"version": "3.11.2"
33563358
}
33573359
},
33583360
"nbformat": 4,

Python Absolute Beginner/Module_1.2_Required_Code.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"collapsed": true
78
},
89
"source": [
910
"# Module 1 Required Coding Activity \n",
1011
"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",
1115
"\n",
1216
"> **NOTE:** This program requires print output and code syntax used in module 1\n",
1317
"\n",
@@ -16,15 +20,16 @@
1620
"| **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",
1721
"\n",
1822
"\n",
19-
"## Program: Allergy Check \n",
23+
"## Program: Name Check \n",
2024
"\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",
2226
" 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",
2428
"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",
2631
"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"
2833
]
2934
},
3035
{
@@ -35,27 +40,22 @@
3540
},
3641
"outputs": [],
3742
"source": [
38-
"# Create Allergy check code\n",
43+
"# Create name check code\n",
3944
"\n",
4045
"# [ ] get input for input_test variable\n",
4146
"\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",
4348
"\n",
4449
"\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",
4651
"\n",
4752
"\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",
4954
"\n",
5055
"\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"
5257
]
5358
},
54-
{
55-
"cell_type": "markdown",
56-
"metadata": {},
57-
"source": []
58-
},
5959
{
6060
"cell_type": "markdown",
6161
"metadata": {},

Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"## Calling Functions with Arguments: print() is a function built in to Python!\n",
3131
"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",
3232
"\n",
33-
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/4mE3mL6oQX0)\n",
33+
"[![view video](extras/green-play-button.svg)](https://youtu.be/4mE3mL6oQX0)\n",
3434
"\n",
3535
"Python allows us to create **User Defined Functions** and provides many **Built-in Functions** such as **`print()`** \n",
3636
"- **`print()`** can be called using arguments (or without) and sends text to standard output, such as the console. \n",

Python Absolute Beginner/Module_2.2_Required_Code.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"collapsed": true
@@ -18,7 +19,9 @@
1819
"- **fishstore returns a string in sentence form** \n",
1920
"- **gather input for fish_entry and price_entry to use in calling fishstore()**\n",
2021
"- **print the return value of fishstore()**\n",
21-
">example of output: **`Fish Type: Guppy costs $1`**"
22+
"- **the final print statement must include your full name**\n",
23+
"\n",
24+
">example of output: **`Report for [YOUR FULL NAME GOES HERE]. Fish Type: Guppy costs $1`**"
2225
]
2326
},
2427
{

Python Absolute Beginner/Module_3.0_Tutorials_Conditionals.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
" - **`pass`** \n",
3333
"## Watch the Walkthrough Video for this Notebook by Clicking Below\n",
3434
" \n",
35-
"[![view video](https://openclipart.org/download/219326/1432343177.svg)]( https://www.youtube.com/watch?v=ui9VZ9tmgyE)"
35+
"[![view video](extras/green-play-button.svg)]( https://www.youtube.com/watch?v=ui9VZ9tmgyE)"
3636
]
3737
},
3838
{

Python Absolute Beginner/Module_3.2_Required_Code.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"collapsed": true
@@ -11,9 +12,10 @@
1112
"\n",
1213
"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",
1314
"\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",
1617
">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",
1719
"\n",
1820
"## Program: Cheese Order Function \n",
1921
"- define function with max, min, price, and order_amount parameters\n",
@@ -29,17 +31,17 @@
2931
"\n",
3032
"Sample input and output:\n",
3133
"```\n",
32-
"Enter cheese order weight (numeric value): 113\n",
34+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 113\n",
3335
"113.0 is more than currently available stock\n",
3436
"```\n",
3537
"\n",
3638
"```\n",
37-
"Enter cheese order weight (numeric value): .15\n",
39+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): .15\n",
3840
"0.15 is below minimum order amount\n",
3941
"``` \n",
4042
"\n",
4143
"```\n",
42-
"Enter cheese order weight (numeric value): 2\n",
44+
"[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 2\n",
4345
"2.0 costs $15.98\n",
4446
"``` "
4547
]
@@ -52,7 +54,7 @@
5254
},
5355
"outputs": [],
5456
"source": [
55-
"# [ ] create, call and test \n"
57+
"# [ ] create fucntion, call and test \n"
5658
]
5759
},
5860
{

Python Absolute Beginner/Module_4.0_Tutorials_Nested_Conditionals.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"<font size=\"6\" color=\"#00A0B2\" face=\"verdana\"> <B>Concepts</B></font>\n",
2323
"## nested conditionals\n",
2424
"\n",
25-
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/BafLWo66zUE)\n",
25+
"[![view video](extras/green-play-button.svg)](https://youtu.be/BafLWo66zUE)\n",
2626
"\n",
2727
"### Making a sandwich\n",
2828
"Taking a sandwich order starts with sandwich choices:\n",
Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
5+
"cell_type": "markdown",
46
"metadata": {
57
"collapsed": true
68
},
7-
"cell_type": "markdown",
89
"source": [
910
"# Module 4 Required Coding Activity \n",
1011
"Introduction to Python Unit 1 \n",
@@ -13,7 +14,7 @@
1314
"\n",
1415
"| Some Assignment Requirements |\n",
1516
"|:-------------------------------|\n",
16-
"|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",
1718
"\n",
1819
"\n",
1920
" \n",
@@ -34,37 +35,35 @@
3435
"#### Sample input and output: \n",
3536
"enter nothing (twice) then enter a word \n",
3637
"```\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",
4041
"\"Hello\" is all alphabetical characters!\n",
4142
" \n",
4243
"``` \n",
4344
"----- \n",
4445
" \n",
4546
"alphabetical word input \n",
4647
"```\n",
47-
"enter word or integer: carbonization\n",
48+
"[YOUR FULL NAME GOES HERE], enter word or integer: carbonization\n",
4849
"\"carbonization\" is all alphabetical characters!\n",
4950
" \n",
5051
"``` \n",
5152
"----- \n",
5253
" \n",
5354
"numeric inputs\n",
5455
"```\n",
55-
"enter word or integer: 30\n",
56+
"[YOUR FULL NAME GOES HERE], enter word or integer: 30\n",
5657
"30 is a smaller number than expected\n",
5758
"\n",
58-
"enter word or integer: 1024\n",
59+
"[YOUR FULL NAME GOES HERE], enter word or integer: 1024\n",
5960
"1024 is a pretty big number\n",
6061
"``` \n",
6162
"----- \n",
6263
"\n",
6364
"\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-
"![image of while Loop with nested if statements described in bulleted text above](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/input_loop_sketch.png) \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",
6867
"\n",
6968
"Once the user gives input with characters use the input in calling the str_analysis() function.\n",
7069
"\n",
@@ -83,47 +82,47 @@
8382
]
8483
},
8584
{
85+
"cell_type": "code",
86+
"execution_count": null,
8687
"metadata": {
8788
"trusted": false
8889
},
89-
"cell_type": "code",
90+
"outputs": [],
9091
"source": [
9192
"# [ ] create, call and test the str_analysis() function \n",
9293
"\n",
9394
"\n",
9495
"\n",
9596
"\n"
96-
],
97-
"execution_count": null,
98-
"outputs": []
97+
]
9998
},
10099
{
101-
"metadata": {},
102100
"cell_type": "markdown",
101+
"metadata": {},
103102
"source": [
104103
"Submit this by creating a python file (.py) and submitting it in D2L. Be sure to test that it works."
105104
]
106105
}
107106
],
108107
"metadata": {
109108
"kernelspec": {
110-
"name": "python3",
111109
"display_name": "Python 3",
112-
"language": "python"
110+
"language": "python",
111+
"name": "python3"
113112
},
114113
"language_info": {
114+
"codemirror_mode": {
115+
"name": "ipython",
116+
"version": 3
117+
},
118+
"file_extension": ".py",
115119
"mimetype": "text/x-python",
116-
"nbconvert_exporter": "python",
117120
"name": "python",
118-
"file_extension": ".py",
119-
"version": "3.5.4",
121+
"nbconvert_exporter": "python",
120122
"pygments_lexer": "ipython3",
121-
"codemirror_mode": {
122-
"version": 3,
123-
"name": "ipython"
124-
}
123+
"version": "3.5.4"
125124
}
126125
},
127126
"nbformat": 4,
128127
"nbformat_minor": 1
129-
}
128+
}

Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"collapsed": true
@@ -11,9 +12,15 @@
1112
"\n",
1213
"Complete all tutorials, practices and required code in the course prior to attempting this activity.\n",
1314
"\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",
1724
"\n",
1825
"\n",
1926
"## Program: `adding_report()` function \n",
@@ -44,6 +51,7 @@
4451
"\n",
4552
"Total\n",
4653
" 111\n",
54+
" Calculated by: [YOUR FULL NAME GOES HERE]\n",
4755
"``` \n",
4856
"\n",
4957
"call with \"T\"(print only the total) \n",
@@ -55,6 +63,7 @@
5563
"\n",
5664
"Total\n",
5765
" 12\n",
66+
" Calculated by: [YOUR FULL NAME GOES HERE]\n",
5867
"``` \n",
5968
"\n",
6069
"\n",
File renamed without changes.

0 commit comments

Comments
 (0)