Skip to content

Commit 888082b

Browse files
committed
Removed Edx paste references
1 parent 9512238 commit 888082b

11 files changed

+826
-524
lines changed

Python Absolute Beginner/Module_1_1.1_Absolute_Beginner_START_HERE.ipynb

Lines changed: 313 additions & 193 deletions
Large diffs are not rendered by default.
Lines changed: 98 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,99 @@
1-
{
2-
"cells": [
3-
{
4-
"metadata": {
5-
"collapsed": true
6-
},
7-
"cell_type": "markdown",
8-
"source": "# Module 1 Required Coding Activity \nIntroduction to Python Unit 1\n\nThis is an activity from the Jupyter Notebook **`Practice_MOD01_1-2_IntroPy.ipynb`** which you may have already completed.\n\n> **NOTE:** This program requires print output and code syntax used in module 1\n\n| Some Assignment Requirements | \n|:-------------------------------| \n| **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\n\n## Program: Allergy Check \n\n1. **[ ]** get user **`input`** for categories of food eaten in the last 24 hours \n save in a variable called **input_test** \n *example input*\n [![01 02 practice Allergy-input](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/eaten_input.gif) ](https://1drv.ms/i/s!Am_KPRosgtaij65qzFD5CGvv95-ijg)\n  \n2. **[ ]** print **`True`** if \"dairy\" is in the **input_test** string \n**[ ]** Test the code so far \n \n3. **[ ]** modify the print statement to output similar to below \n*example output*\n[![01 02 Allergy output](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/eaten_output.gif) ](https://1drv.ms/i/s!Am_KPRosgtaij65rET-wmlpCdMX7CQ) \nTest the code so far trying input including the string \"dairy\" and without \n  \n\n4. **[ ]** repeat the process checking the input for \"nuts\", **challenge** add \"Seafood\" and \"chocolate\" \n**[ ]** Test your code \n  \n \n5. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"Nuts\", \"NuTs\", \"NUTS\" or \"nuts\" \n"
9-
},
10-
{
11-
"metadata": {
12-
"collapsed": true,
13-
"trusted": false
14-
},
15-
"cell_type": "code",
16-
"source": "# Create Allergy check code\n# then PASTE THIS CODE into edX\n\n# [ ] get input for input_test variable\nxl/fjnzs/lfgs?FDNv\n\n# [ ] print \"True\" message if \"dairy\" is in the input or False message if not\nslf/lasjdbfn/\n\n# [ ] print True message if \"nuts\" is in the input or False if not\nsda;lkfhj/LSJDFH\n\n# [ ] Challenge: Check if \"seafood\" is in the input - print message\n\nsadfklh/hasdf\n# [ ] Challenge: Check if \"chocolate\" is in the input - print message",
17-
"execution_count": 1,
18-
"outputs": []
19-
},
20-
{
21-
"metadata": {},
22-
"cell_type": "markdown",
23-
"source": "### Need assignment tips and clarification? \nSee the video on the \"End of Module coding assignment > Module 1 Required Code Description\" course page on [edX](https://courses.edx.org/courses/course-v1:Microsoft+DEV236x+4T2017/course) \n \n\n# Important: [How to submit the code in edX by pasting](https://courses.edx.org/courses/course-v1:Microsoft+DEV236x+1T2017/wiki/Microsoft.DEV236x.3T2018/paste-code-end-module-coding-assignments/)https://preview.edx.org/courses/course-v1:Microsoft+DEV236x+3T2018/wiki/Microsoft.DEV236x.1T2017/paste-code-end-module-coding-assignments/"
24-
},
25-
{
26-
"metadata": {},
27-
"cell_type": "markdown",
28-
"source": "[Terms of use](http://go.microsoft.com/fwlink/?LinkID=206977)   [Privacy & cookies](https://go.microsoft.com/fwlink/?LinkId=521839)   © 2017 Microsoft"
29-
}
30-
],
31-
"metadata": {
32-
"kernelspec": {
33-
"name": "python3",
34-
"display_name": "Python 3",
35-
"language": "python"
36-
},
37-
"language_info": {
38-
"mimetype": "text/x-python",
39-
"nbconvert_exporter": "python",
40-
"name": "python",
41-
"pygments_lexer": "ipython3",
42-
"version": "3.5.4",
43-
"file_extension": ".py",
44-
"codemirror_mode": {
45-
"version": 3,
46-
"name": "ipython"
47-
}
48-
}
49-
},
50-
"nbformat": 4,
51-
"nbformat_minor": 1
1+
{
2+
"cells": [
3+
{
4+
"metadata": {
5+
"collapsed": true
6+
},
7+
"cell_type": "markdown",
8+
"source": [
9+
"# Module 1 Required Coding Activity \n",
10+
"Introduction to Python Unit 1\n",
11+
"\n",
12+
"This is an activity from the Jupyter Notebook **`Practice_MOD01_1-2_IntroPy.ipynb`** which you may have already completed.\n",
13+
"\n",
14+
"> **NOTE:** This program requires print output and code syntax used in module 1\n",
15+
"\n",
16+
"| Some Assignment Requirements | \n",
17+
"|:-------------------------------| \n",
18+
"| **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",
19+
"\n",
20+
"\n",
21+
"## Program: Allergy Check \n",
22+
"\n",
23+
"1. **[ ]** get user **`input`** for categories of food eaten in the last 24 hours \n",
24+
" save in a variable called **input_test** \n",
25+
" *example input*\n",
26+
" [![01 02 practice Allergy-input](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/eaten_input.gif) ](https://1drv.ms/i/s!Am_KPRosgtaij65qzFD5CGvv95-ijg)\n",
27+
"  \n",
28+
"2. **[ ]** print **`True`** if \"dairy\" is in the **input_test** string \n",
29+
"**[ ]** Test the code so far \n",
30+
" \n",
31+
"3. **[ ]** modify the print statement to output similar to below \n",
32+
"*example output*\n",
33+
"[![01 02 Allergy output](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/eaten_output.gif) ](https://1drv.ms/i/s!Am_KPRosgtaij65rET-wmlpCdMX7CQ) \n",
34+
"Test the code so far trying input including the string \"dairy\" and without \n",
35+
"  \n",
36+
"\n",
37+
"4. **[ ]** repeat the process checking the input for \"nuts\", **challenge** add \"Seafood\" and \"chocolate\" \n",
38+
"**[ ]** Test your code \n",
39+
"  \n",
40+
" \n",
41+
"5. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"Nuts\", \"NuTs\", \"NUTS\" or \"nuts\" \n"
42+
]
43+
},
44+
{
45+
"metadata": {
46+
"collapsed": true,
47+
"trusted": false
48+
},
49+
"cell_type": "code",
50+
"source": [
51+
"# Create Allergy check code\n",
52+
"\n",
53+
"# [ ] get input for input_test variable\n",
54+
"xl/fjnzs/lfgs?FDNv\n",
55+
"\n",
56+
"# [ ] print \"True\" message if \"dairy\" is in the input or False message if not\n",
57+
"slf/lasjdbfn/\n",
58+
"\n",
59+
"# [ ] print True message if \"nuts\" is in the input or False if not\n",
60+
"sda;lkfhj/LSJDFH\n",
61+
"\n",
62+
"# [ ] Challenge: Check if \"seafood\" is in the input - print message\n",
63+
"\n",
64+
"sadfklh/hasdf\n",
65+
"# [ ] Challenge: Check if \"chocolate\" is in the input - print message"
66+
],
67+
"execution_count": 1,
68+
"outputs": []
69+
},
70+
{
71+
"metadata": {},
72+
"cell_type": "markdown",
73+
"source": [
74+
"Submit this by creating a python file (.py) and submitting it in D2L. Be sure to test that it works."
75+
]
76+
}
77+
],
78+
"metadata": {
79+
"kernelspec": {
80+
"name": "python3",
81+
"display_name": "Python 3",
82+
"language": "python"
83+
},
84+
"language_info": {
85+
"mimetype": "text/x-python",
86+
"nbconvert_exporter": "python",
87+
"name": "python",
88+
"pygments_lexer": "ipython3",
89+
"version": "3.5.4",
90+
"file_extension": ".py",
91+
"codemirror_mode": {
92+
"version": 3,
93+
"name": "ipython"
94+
}
95+
}
96+
},
97+
"nbformat": 4,
98+
"nbformat_minor": 1
5299
}
Lines changed: 66 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,67 @@
1-
{
2-
"cells": [
3-
{
4-
"metadata": {
5-
"collapsed": true
6-
},
7-
"cell_type": "markdown",
8-
"source": "# Module 2 Required Coding Activity \nIntroduction to Python Unit 1 \n\nThis is an activity based on code similar to the Jupyter Notebook **`Practice_MOD02_1-3_IntroPy.ipynb`** which you may have completed.\n\n| Some Assignment Requirements | \n|:-------------------------------| \n| **NOTE:** This program requires a **function** be defined, created and called. The call will send values based on user input. The function call must capture a `return` value that is used in print output. The function will have parameters and `return` a string and should otherwise use code syntax covered in module 2. | \n \n## Program: fishstore()\ncreate and test fishstore()\n- **fishstore() takes 2 string arguments: fish & price**\n- **fishstore returns a string in sentence form** \n- **gather input for fish_entry and price_entry to use in calling fishstore()**\n- **print the return value of fishstore()**\n>example of output: **`Fish Type: Guppy costs $1`**"
9-
},
10-
{
11-
"metadata": {
12-
"trusted": false
13-
},
14-
"cell_type": "code",
15-
"source": "# [ ] create, call and test fishstore() function \n# then PASTE THIS CODE into edX",
16-
"execution_count": null,
17-
"outputs": []
18-
},
19-
{
20-
"metadata": {},
21-
"cell_type": "markdown",
22-
"source": "### Need assignment tips and clarification? \nSee the video on the \"End of Module coding assignment > Module 2 Required Code Description\" course page on [edX](https://courses.edx.org/courses/course-v1:Microsoft+DEV236x+4T2017/course) \n\n# Important: [How to submit the code in edX by pasting](https://courses.edx.org/courses/course-v1:Microsoft+DEV236x+1T2017/wiki/Microsoft.DEV236x.3T2018/paste-code-end-module-coding-assignments/)"
23-
},
24-
{
25-
"metadata": {},
26-
"cell_type": "markdown",
27-
"source": "[Terms of use](http://go.microsoft.com/fwlink/?LinkID=206977)   [Privacy & cookies](https://go.microsoft.com/fwlink/?LinkId=521839)   © 2017 Microsoft"
28-
}
29-
],
30-
"metadata": {
31-
"kernelspec": {
32-
"name": "python3",
33-
"display_name": "Python 3",
34-
"language": "python"
35-
},
36-
"language_info": {
37-
"mimetype": "text/x-python",
38-
"nbconvert_exporter": "python",
39-
"name": "python",
40-
"pygments_lexer": "ipython3",
41-
"version": "3.5.4",
42-
"file_extension": ".py",
43-
"codemirror_mode": {
44-
"version": 3,
45-
"name": "ipython"
46-
}
47-
}
48-
},
49-
"nbformat": 4,
50-
"nbformat_minor": 1
1+
{
2+
"cells": [
3+
{
4+
"metadata": {
5+
"collapsed": true
6+
},
7+
"cell_type": "markdown",
8+
"source": [
9+
"# Module 2 Required Coding Activity \n",
10+
"Introduction to Python Unit 1 \n",
11+
"\n",
12+
"This is an activity based on code similar to the Jupyter Notebook **`Practice_MOD02_1-3_IntroPy.ipynb`** which you may have completed.\n",
13+
"\n",
14+
"| Some Assignment Requirements | \n",
15+
"|:-------------------------------| \n",
16+
"| **NOTE:** This program requires a **function** be defined, created and called. The call will send values based on user input. The function call must capture a `return` value that is used in print output. The function will have parameters and `return` a string and should otherwise use code syntax covered in module 2. | \n",
17+
" \n",
18+
"## Program: fishstore()\n",
19+
"create and test fishstore()\n",
20+
"- **fishstore() takes 2 string arguments: fish & price**\n",
21+
"- **fishstore returns a string in sentence form** \n",
22+
"- **gather input for fish_entry and price_entry to use in calling fishstore()**\n",
23+
"- **print the return value of fishstore()**\n",
24+
">example of output: **`Fish Type: Guppy costs $1`**"
25+
]
26+
},
27+
{
28+
"metadata": {
29+
"trusted": false
30+
},
31+
"cell_type": "code",
32+
"source": [
33+
"# [ ] create, call and test fishstore() function \n"
34+
],
35+
"execution_count": null,
36+
"outputs": []
37+
},
38+
{
39+
"metadata": {},
40+
"cell_type": "markdown",
41+
"source": [
42+
"Submit this by creating a python file (.py) and submitting it in D2L. Be sure to test that it works."
43+
]
44+
}
45+
],
46+
"metadata": {
47+
"kernelspec": {
48+
"name": "python3",
49+
"display_name": "Python 3",
50+
"language": "python"
51+
},
52+
"language_info": {
53+
"mimetype": "text/x-python",
54+
"nbconvert_exporter": "python",
55+
"name": "python",
56+
"pygments_lexer": "ipython3",
57+
"version": "3.5.4",
58+
"file_extension": ".py",
59+
"codemirror_mode": {
60+
"version": 3,
61+
"name": "ipython"
62+
}
63+
}
64+
},
65+
"nbformat": 4,
66+
"nbformat_minor": 1
5167
}

0 commit comments

Comments
 (0)