Skip to content

Commit e9156fe

Browse files
authored
Python Course with Video Links
1 parent 42fffde commit e9156fe

14 files changed

+66
-28
lines changed

00. Introduction.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"\n",
2323
"![python.png](attachment:python.png)\n",
2424
"\n",
25-
"Welcome to this introductory course on Python! This course is intended to help you start programming in Python from little or no prior experience. There are video tutorials for each exercise if you have questions along the way. One of the unique things about this course is that you work on basic elements to help you with a temperature control project. You will see your Python code have a real effect by adjusting heaters to maintain a target temperature, just like a thermostat in a home or office.\n",
25+
"Welcome to this introductory course on Python! This course is intended to help you start programming in Python from little or no prior experience. There are video tutorials for each exercise if you have questions along the way.\n",
26+
"\n",
27+
"[![Intro to Python](http://img.youtube.com/vi/EO_YpBs8cs0/0.jpg)](https://www.youtube.com/watch?v=EO_YpBs8cs0&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Introduction to Python\")\n",
28+
"\n",
29+
"One of the unique things about this course is that you work on basic elements to help you with a temperature control project. You will see your Python code have a real effect by adjusting heaters to maintain a target temperature, just like a thermostat in a home or office.\n",
2630
"\n",
2731
"![temperature.png](attachment:temperature.png)\n",
2832
"\n",
@@ -58,7 +62,7 @@
5862
"name": "python",
5963
"nbconvert_exporter": "python",
6064
"pygments_lexer": "ipython3",
61-
"version": "3.7.4"
65+
"version": "3.7.5"
6266
}
6367
},
6468
"nbformat": 4,

01. Overview.ipynb

Lines changed: 3 additions & 6 deletions
Large diffs are not rendered by default.

02. Debugging.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"\n",
2222
"One of the biggest time consuming parts of programming is debugging, or resolving mistakes in the program. This is true for every language because the computer needs exact commands, which is very important for precise measurements and control for incubating. A few steps can limit the time you are searching for mistakes, instead of completing the project. \n",
2323
"\n",
24+
"[![Pseudo-Code and Debugging](http://img.youtube.com/vi/n1BlQkoWbdM/0.jpg)](https://www.youtube.com/watch?v=n1BlQkoWbdM&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Pseudo-Code and Debugging\")\n",
25+
"\n",
2426
"### Steps for more effective programming\n",
2527
"\n",
2628
"![list.png](attachment:list.png)\n",
@@ -89,7 +91,7 @@
8991
"name": "python",
9092
"nbconvert_exporter": "python",
9193
"pygments_lexer": "ipython3",
92-
"version": "3.7.4"
94+
"version": "3.7.5"
9395
}
9496
},
9597
"nbformat": 4,

03. Variables.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"\n",
1919
"Variables store information and are objects in Python. For example, if you wanted to keep a set temperature for an egg, you would type ```egg = 37.5``` for °C or ```egg = 99.5``` for °F. The first part tells what the variable will be called, and the value after the ```=``` tells what is being stored. \n",
2020
"\n",
21+
"[![Variable Types](http://img.youtube.com/vi/q6QOsauDyPg/0.jpg)](https://www.youtube.com/watch?v=q6QOsauDyPg&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Variable Types\")\n",
22+
"\n",
2123
"### Types of Variables\n",
2224
"\n",
2325
"![idea.png](attachment:idea.png)\n",
@@ -259,7 +261,7 @@
259261
"name": "python",
260262
"nbconvert_exporter": "python",
261263
"pygments_lexer": "ipython3",
262-
"version": "3.7.4"
264+
"version": "3.7.5"
263265
}
264266
},
265267
"nbformat": 4,

04. Printing.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"\n",
1414
"![exercise.PNG](attachment:exercise.PNG)\n",
1515
"\n",
16-
"Printing is displaying values to the screen. The word `print` comes from the time when programs previously put ink on paper. You use the built in python __function__ ```print()``` to output values. You could use this to tell you what the current temperature of the egg is and when to display it. Get more practice by putting something different in the function and running the program."
16+
"Printing is displaying values to the screen. The word `print` comes from the time when programs previously put ink on paper. You use the built in python __function__ ```print()``` to output values.\n",
17+
"\n",
18+
"[![Print](http://img.youtube.com/vi/CCPNIocw0_Y/0.jpg)](https://www.youtube.com/watch?v=CCPNIocw0_Y&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Print\")\n",
19+
"\n",
20+
"You could use this to tell you what the current temperature of the egg is and when to display it. Get more practice by putting something different in the function and running the program."
1721
]
1822
},
1923
{
@@ -231,7 +235,7 @@
231235
"name": "python",
232236
"nbconvert_exporter": "python",
233237
"pygments_lexer": "ipython3",
234-
"version": "3.7.4"
238+
"version": "3.7.5"
235239
}
236240
},
237241
"nbformat": 4,

05. Classes and Objects.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"\n",
1414
"![list.png](attachment:list.png)\n",
1515
"\n",
16-
"Classes are collections of objects and functions. Many Python packages such as `time`, `tclab`, `numpy`, `scipy`, `gekko`, and others are distributed as `classes`. A class is imported with the `import` statement such as ```import time```. Time is a package that has timing functions that we will use to pause the program for a specified amount of time. TCLab package has functions created with ```tclab.TCLab()```. The next lesson shows how to use the `tclab` functions."
16+
"Classes are collections of objects and functions. Many Python packages such as `time`, `tclab`, `numpy`, `scipy`, `gekko`, and others are distributed as `classes`. A class is imported with the `import` statement such as ```import time```.\n",
17+
"\n",
18+
"[![Classes and Objects](http://img.youtube.com/vi/-rvIRWf7eGc/0.jpg)](https://www.youtube.com/watch?v=-rvIRWf7eGc&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Classes and Objects\")\n",
19+
"\n",
20+
"Time is a package that has timing functions that we will use to pause the program for a specified amount of time. TCLab package has functions created with ```tclab.TCLab()```. The next lesson shows how to use the `tclab` functions."
1721
]
1822
},
1923
{
@@ -203,7 +207,7 @@
203207
"name": "python",
204208
"nbconvert_exporter": "python",
205209
"pygments_lexer": "ipython3",
206-
"version": "3.7.4"
210+
"version": "3.7.5"
207211
}
208212
},
209213
"nbformat": 4,

06. Functions.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"\n",
1616
"Functions create modular code that can do the same task repeatedly without you having to type out the same code each time. Functions make complex code accessible with a single statement. You also can create your own function, but there are also some are built in to Python or in many packages. One built in function you have already seen is the ```print()``` function.\n",
1717
"\n",
18+
"[![Functions](http://img.youtube.com/vi/dP3e2jIHqXw/0.jpg)](https://www.youtube.com/watch?v=dP3e2jIHqXw&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Functions\")\n",
19+
"\n",
1820
"For the incubation example, a display function could be used such as the function `ctemp()` to print the current temperature. This re-uses the print statement so that you don't need to type it out each time for temperatures 1 and 2.\n",
1921
"\n",
2022
"```python\n",
@@ -223,7 +225,7 @@
223225
"name": "python",
224226
"nbconvert_exporter": "python",
225227
"pygments_lexer": "ipython3",
226-
"version": "3.7.4"
228+
"version": "3.7.5"
227229
}
228230
},
229231
"nbformat": 4,

07. Loops.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"\n",
1919
"There are two basic types of loops including `for` and `while`. An example of a loop is to check the temperature of the egg every second and adjust the heater.\n",
2020
"\n",
21+
"[![Loops](http://img.youtube.com/vi/qR0njzQvvOA/0.jpg)](https://www.youtube.com/watch?v=qR0njzQvvOA&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Loops\")\n",
22+
"\n",
2123
"### While Loops\n",
2224
"\n",
2325
"![idea.png](attachment:idea.png)\n",
@@ -47,7 +49,6 @@
4749
]
4850
},
4951
{
50-
"attachments": {},
5152
"cell_type": "markdown",
5253
"metadata": {},
5354
"source": [
@@ -339,7 +340,7 @@
339340
"name": "python",
340341
"nbconvert_exporter": "python",
341342
"pygments_lexer": "ipython3",
342-
"version": "3.7.4"
343+
"version": "3.7.5"
343344
}
344345
},
345346
"nbformat": 4,

08. Input.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"\n",
1919
"Input simply requests information from the person using the computer. By default the input value is stored as a __string__ so if you're doing a math equation you need to turn it into an __integer__ or __float__. In an egg temperature controller, certain types of eggs may require a different input and you could put that in your code to change the desired temperature. You could also use `input` to manually change power to the heaters.\n",
2020
"\n",
21+
"[![Input](http://img.youtube.com/vi/63P8tLh-j5o/0.jpg)](https://www.youtube.com/watch?v=63P8tLh-j5o&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Input\")\n",
22+
"\n",
2123
"If you run the code below, it asks you for a number, then comes up as an error. You need to turn ```eggs``` __variable__ into an __int__. \n",
2224
"\n",
2325
"Use ```int()``` and ```str()``` to change types.\n",
@@ -124,7 +126,7 @@
124126
"name": "python",
125127
"nbconvert_exporter": "python",
126128
"pygments_lexer": "ipython3",
127-
"version": "3.7.4"
129+
"version": "3.7.5"
128130
}
129131
},
130132
"nbformat": 4,

09. If Statements.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
"\n",
1717
"![list.png](attachment:list.png)\n",
1818
"\n",
19-
"If and else statements tell the computer what to do based on a `True` condition. This could be used for the temperature of the egg by telling the heaters to turn on, if the egg is too cold.\n",
19+
"If and else statements tell the computer what to do based on a `True` condition.\n",
20+
"\n",
21+
"[![Conditionals: if](http://img.youtube.com/vi/aNB2MQecPNk/0.jpg)](https://www.youtube.com/watch?v=aNB2MQecPNk&list=PLLBUgWXdTBDi3J05aMVG1knUpqRhkbc46 \"Conditionals: if\")\n",
22+
"\n",
23+
"This could be used for the temperature of the egg by telling the heaters to turn on, if the egg is too cold.\n",
2024
"\n",
2125
"![hatch.png](attachment:hatch.png)\n",
2226
"\n",
@@ -217,7 +221,7 @@
217221
"name": "python",
218222
"nbconvert_exporter": "python",
219223
"pygments_lexer": "ipython3",
220-
"version": "3.7.4"
224+
"version": "3.7.5"
221225
}
222226
},
223227
"nbformat": 4,

0 commit comments

Comments
 (0)