Skip to content

Commit 74bf46c

Browse files
committed
add polls
1 parent 149e069 commit 74bf46c

File tree

3 files changed

+45
-8
lines changed

3 files changed

+45
-8
lines changed

lessons/1_Jupyter_and_Python.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"🥊 **Challenge**: Interactive exercise. We'll work through these in the workshop!<br>\n",
2222
"💡 **Tip**: How to do something a bit more efficiently or effectively.<br>\n",
2323
"⚠️ **Warning:** Heads-up about tricky stuff or common mistakes.<br>\n",
24+
"📝 **Poll:** A Zoom poll to help you learn!<br>\n",
2425
"🎬 **Demo**: Showing off something more advanced – so you know what Python can be used for!<br>\n",
2526
"\n",
2627
"### Sections\n",
@@ -40,8 +41,7 @@
4041
"\n",
4142
"Python is a general-purpose programming language. It can be used for many tasks, including building websites and software, automating tasks, data analysis, and more.\n",
4243
"\n",
43-
"<span style=\"color:purple\">🔔 **Question**: Why are you learning Python? What would you like to use it for? </span>\n",
44-
"\n",
44+
"📝 **Poll PyFun 1-1:** Why are you learning Python? What would you like to use it for? </span>\n",
4545
"\n",
4646
"This introduction to Python is built around **data analysis**, although many of these skills will be useful for other applications of Python.\n",
4747
"\n",
@@ -189,7 +189,7 @@
189189
"\n",
190190
"For example, we can assign the result of the above calculation to a variable called `a`.\n",
191191
"\n",
192-
"<span style=\"color:purple\">🔔 **Question:** What do you think the output of the following code cell will be? </span>"
192+
"📝 **Poll PyFun 1-2:** What do you think the output of the following code cell will be?"
193193
]
194194
},
195195
{

lessons/2_Data_Types_and_Structures.ipynb

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"🥊 **Challenge**: Interactive exercise. We'll work through these in the workshop!<br>\n",
2525
"💡 **Tip**: How to do something a bit more efficiently or effectively.<br>\n",
2626
"⚠️ **Warning:** Heads-up about tricky stuff or common mistakes.<br>\n",
27+
"📝 **Poll:** A Zoom poll to help you learn!<br>\n",
2728
"🎬 **Demo**: Showing off something more advanced – so you know what Python can be used for!<br>\n",
2829
"\n",
2930
"\n",
@@ -248,7 +249,7 @@
248249
"cell_type": "markdown",
249250
"metadata": {},
250251
"source": [
251-
"## <span style=\"color:purple\"> 🥊 Challenge 1: What's Your Type?</span>\n",
252+
"## 🥊 Challenge 1: What's Your Type?</span>\n",
252253
"\n",
253254
"What is the type of the following expressions? Run these cells and wrap them in a `type()` function to see!\n",
254255
"\n",
@@ -287,6 +288,13 @@
287288
"['Afghanistan','Canada','Zimbabwe']"
288289
]
289290
},
291+
{
292+
"cell_type": "markdown",
293+
"metadata": {},
294+
"source": [
295+
"📝 **Poll PyFun 2-1:** What is the type of the expressions?"
296+
]
297+
},
290298
{
291299
"cell_type": "markdown",
292300
"metadata": {
@@ -604,9 +612,9 @@
604612
"tags": []
605613
},
606614
"source": [
607-
"## 🥊 <span style=\"color:purple\"> Challenge 4: Indexing </span>\n",
615+
"## 🥊 Challenge 4: Indexing\n",
608616
"\n",
609-
"Index the following list to get rid of the values `1`, `3`, and `5`. Just try different ways out! For instance, what does `numbers[3:]` do? Or `numbers[-3]`?"
617+
"Index the following list to get rid of the values `1`, `3`, and `5`. There are different ways to do this!"
610618
]
611619
},
612620
{
@@ -620,6 +628,13 @@
620628
"# YOUR CODE HERE\n"
621629
]
622630
},
631+
{
632+
"cell_type": "markdown",
633+
"metadata": {},
634+
"source": [
635+
"📝 **Poll PyFun 2-2:** How can we index the list to get rid of the values 1, 3, and 5?"
636+
]
637+
},
623638
{
624639
"cell_type": "markdown",
625640
"metadata": {},

lessons/3_Pandas.ipynb

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"🥊 **Challenge**: Interactive exercise. We'll work through these in the workshop!<br>\n",
2626
"💡 **Tip**: How to do something a bit more efficiently or effectively.<br>\n",
2727
"⚠️ **Warning:** Heads-up about tricky stuff or common mistakes.<br>\n",
28+
"📝 **Poll:** A Zoom poll to help you learn!<br>\n",
2829
"🎬 **Demo**: Showing off something more advanced – so you know what Python can be used for!<br>\n",
2930
"\n",
3031
"### Sections\n",
@@ -263,7 +264,7 @@
263264
"cell_type": "markdown",
264265
"metadata": {},
265266
"source": [
266-
"## 🥊 <span style=\"color:purple\"> Challenge 2: Putting Methods in Order</span>\n",
267+
"## 🥊 Challenge 2: Putting Methods in Order\n",
267268
"\n",
268269
"In the following code we want to to find the top-3 most frequently occurring continents in our data. Put the following code fragments in the right order to get this information!"
269270
]
@@ -279,6 +280,13 @@
279280
"df['continent']"
280281
]
281282
},
283+
{
284+
"cell_type": "markdown",
285+
"metadata": {},
286+
"source": [
287+
"📝 **Poll PyFun 3-1:** What is the correct order of the methods?"
288+
]
289+
},
282290
{
283291
"cell_type": "markdown",
284292
"metadata": {},
@@ -409,7 +417,7 @@
409417
"tags": []
410418
},
411419
"source": [
412-
"## 🥊 <span style=\"color:purple\">Challenge 3: Subsetting Data Frames</span>\n",
420+
"## 🥊 Challenge 3: Subsetting Data Frames\n",
413421
"\n",
414422
"Besides `==` we can use [other operators](https://www.w3schools.com/python/gloss_python_comparison_operators.asp) to compare values. For instance:\n",
415423
"- `<` less than\n",
@@ -437,6 +445,13 @@
437445
"df[df[...] < ...]"
438446
]
439447
},
448+
{
449+
"cell_type": "markdown",
450+
"metadata": {},
451+
"source": [
452+
"📝 **Poll PyFun 3-2:** What is the shape of the resulting data frame?"
453+
]
454+
},
440455
{
441456
"cell_type": "markdown",
442457
"metadata": {},
@@ -467,6 +482,13 @@
467482
"\n"
468483
]
469484
},
485+
{
486+
"cell_type": "markdown",
487+
"metadata": {},
488+
"source": [
489+
"📝 **Poll PyFun 3-3:** After these 3 workshops, how comfortable do you feel advancing to a workshop about Pandas DataFrames?"
490+
]
491+
},
470492
{
471493
"cell_type": "markdown",
472494
"metadata": {

0 commit comments

Comments
 (0)