Skip to content

Commit 05effcd

Browse files
committed
Completed walkthrough videos for Tutorial 1 and updated news year in KSU scrape
1 parent 32e4588 commit 05effcd

File tree

2 files changed

+121
-32
lines changed

2 files changed

+121
-32
lines changed

2 ksu scrape/ksu_scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from datetime import datetime
88

99

10-
source = requests.get('https://news.kennesaw.edu/news-releases/?&categories=news%20releases&year=2019').text
10+
source = requests.get('https://news.kennesaw.edu/news-releases/?&categories=news%20releases&year=2021').text
1111

1212
soup = BeautifulSoup(source, 'lxml')
1313

Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb

Lines changed: 120 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
},
1010
"source": [
11-
"# Absolute Beginner Module 1 Introduction (P1M1)\n",
11+
"# Python Absolute Beginner Module 1: Introduction (P1M1)\n",
1212
"## Getting started with Python in Jupyter Notebooks\n",
1313
"- **Python 3 in Jupyter notebooks**\n",
1414
"- **`print()`**\n",
@@ -38,7 +38,12 @@
3838
"Python has a very simple implementation: \n",
3939
"```python\n",
4040
"print(\"Hello World!\")\n",
41-
"``` "
41+
"``` \n",
42+
"\n",
43+
"# Watch this video walkthrough as you work\n",
44+
"## The big green circle play icon below links to a video walkthrough of this tutorial\n",
45+
"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)"
4247
]
4348
},
4449
{
@@ -80,24 +85,42 @@
8085
},
8186
{
8287
"cell_type": "code",
83-
"execution_count": null,
88+
"execution_count": 1,
8489
"metadata": {
8590
"slideshow": {
8691
"slide_type": "subslide"
8792
}
8893
},
89-
"outputs": [],
94+
"outputs": [
95+
{
96+
"name": "stdout",
97+
"output_type": "stream",
98+
"text": [
99+
"Hello World!\n"
100+
]
101+
}
102+
],
90103
"source": [
91104
"# Review the code, run the code\n",
92105
"print(\"Hello World!\")"
93106
]
94107
},
95108
{
96109
"cell_type": "code",
97-
"execution_count": null,
110+
"execution_count": 3,
98111
"metadata": {},
99-
"outputs": [],
100-
"source": []
112+
"outputs": [
113+
{
114+
"name": "stdout",
115+
"output_type": "stream",
116+
"text": [
117+
"Hello programmer!\n"
118+
]
119+
}
120+
],
121+
"source": [
122+
"print(\"Hello programmer!\")"
123+
]
101124
},
102125
{
103126
"cell_type": "code",
@@ -133,12 +156,13 @@
133156
},
134157
{
135158
"cell_type": "code",
136-
"execution_count": null,
159+
"execution_count": 5,
137160
"metadata": {},
138161
"outputs": [],
139162
"source": [
140163
"# this is how a comment looks in python code\n",
141-
"# every comment line starts with the # symbol"
164+
"# every comment line starts with the # symbol\n",
165+
"# print(\"hello world\")"
142166
]
143167
},
144168
{
@@ -230,6 +254,20 @@
230254
"outputs": [],
231255
"source": []
232256
},
257+
{
258+
"cell_type": "code",
259+
"execution_count": null,
260+
"metadata": {},
261+
"outputs": [],
262+
"source": []
263+
},
264+
{
265+
"cell_type": "code",
266+
"execution_count": null,
267+
"metadata": {},
268+
"outputs": [],
269+
"source": []
270+
},
233271
{
234272
"cell_type": "markdown",
235273
"metadata": {},
@@ -293,7 +331,7 @@
293331
"## What is a **String?** \n",
294332
"Strings were used in \"Hello World!\" print function examples. Strings are sets of characters. In Python strings are in double or single quotes like `\"Hello World!\"` or `'after edit, save!'` \n",
295333
" \n",
296-
"A String is a common **type** of data, used in programming, consisting of a sequence of 1 or more characters. They are known formally as a primitive data type. \n",
334+
"A String is a common **type** of data, used in programming, consisting of a sequence of 1 or more characters. They are known formally as a **primitive data type.** The other primitive types are integer, float, and boolean. We will see those later.\n",
297335
"* **A String is a sequence of characters** (aka: a *string* of characters) \n",
298336
" * Character examples: `A, B, C, a, b, c, 1, 2, 3, !, &`\n",
299337
"* A String in Python is contained in quotes, single(') or double(\")\n",
@@ -313,9 +351,18 @@
313351
},
314352
{
315353
"cell_type": "code",
316-
"execution_count": null,
354+
"execution_count": 6,
317355
"metadata": {},
318-
"outputs": [],
356+
"outputs": [
357+
{
358+
"name": "stdout",
359+
"output_type": "stream",
360+
"text": [
361+
"strings go in single\n",
362+
"or double quotes\n"
363+
]
364+
}
365+
],
319366
"source": [
320367
"# examples of printing strings with single and double quotes\n",
321368
"print('strings go in single')\n",
@@ -368,10 +415,22 @@
368415
},
369416
{
370417
"cell_type": "code",
371-
"execution_count": null,
418+
"execution_count": 7,
372419
"metadata": {},
373-
"outputs": [],
374-
"source": []
420+
"outputs": [
421+
{
422+
"name": "stdout",
423+
"output_type": "stream",
424+
"text": [
425+
"123\n",
426+
"123\n"
427+
]
428+
}
429+
],
430+
"source": [
431+
"print(123) #integer, with numeric value\n",
432+
"print(\"123\") #string, represents text characters"
433+
]
375434
},
376435
{
377436
"cell_type": "markdown",
@@ -384,7 +443,7 @@
384443
"source": [
385444
"#  \n",
386445
"<font size=\"6\" color=\"#00A0B2\" face=\"verdana\"> <B>Concepts</B></font>\n",
387-
"## Integers are another type\n",
446+
"## Integers are another primitive data type\n",
388447
"- whole numbers such as `-2, -1, 0, 1, 2, 3` are Integers \n",
389448
"- Integers are **not placed in quotes** \n",
390449
" \n",
@@ -406,9 +465,18 @@
406465
},
407466
{
408467
"cell_type": "code",
409-
"execution_count": null,
468+
"execution_count": 8,
410469
"metadata": {},
411-
"outputs": [],
470+
"outputs": [
471+
{
472+
"name": "stdout",
473+
"output_type": "stream",
474+
"text": [
475+
"299\n",
476+
"2017\n"
477+
]
478+
}
479+
],
412480
"source": [
413481
"# printing an Integer with python\n",
414482
"print(299)\n",
@@ -454,11 +522,11 @@
454522
"source": [
455523
"# &nbsp;\n",
456524
"<font size=\"6\" color=\"#00A0B2\" face=\"verdana\"> <B>Concepts</B></font>\n",
457-
"## Variables & Storing Strings in **Variables** \n",
525+
"## Variables & Storing Data in **Variables** \n",
458526
"### Variables are named containers\n",
459527
"Computer programs often create storage for things that are used in repeated processing like item_price, student_name, stock_symbol. In python a variable is a type of **object** that can be addressed by name to access the assigned contents.\n",
460528
"\n",
461-
"#### Name a variable staring with a letter or underscore \"_\"\n",
529+
"#### Name a variable staring with a letter or underscore \"_\"; You cannot begin the name with a number or reserved word\n",
462530
"There are different styles for creating variables this course uses lowercase descriptive names connected by underscores:\n",
463531
"- item_price\n",
464532
"- student_name\n",
@@ -494,13 +562,22 @@
494562
},
495563
{
496564
"cell_type": "code",
497-
"execution_count": null,
565+
"execution_count": 12,
498566
"metadata": {},
499-
"outputs": [],
567+
"outputs": [
568+
{
569+
"name": "stdout",
570+
"output_type": "stream",
571+
"text": [
572+
"I am a string\n",
573+
"Run this cell using Ctrl+Enter\n"
574+
]
575+
}
576+
],
500577
"source": [
501578
"# [ ] Review code and Run\n",
502579
"# initialize the variable\n",
503-
"current_msg = \"I am a string\"\n",
580+
"#current_msg = \"I am a string\"\n",
504581
"\n",
505582
"# print literal string\n",
506583
"print(\"I am a string\")\n",
@@ -511,11 +588,19 @@
511588
},
512589
{
513590
"cell_type": "code",
514-
"execution_count": null,
591+
"execution_count": 11,
515592
"metadata": {
516593
"scrolled": true
517594
},
518-
"outputs": [],
595+
"outputs": [
596+
{
597+
"name": "stdout",
598+
"output_type": "stream",
599+
"text": [
600+
"Run this cell using Ctrl+Enter\n"
601+
]
602+
}
603+
],
519604
"source": [
520605
"# [ ] Review code and Run\n",
521606
"# assign a new string to the current_msg\n",
@@ -575,7 +660,8 @@
575660
"student_name =\"Dias, Joana\" #student_name initialized as a string\n",
576661
"license_plate = \"123A\" #license_plate initialized as a string\n",
577662
"```\n",
578-
"\n",
663+
"# Walkthrough video for tasks 6-12\n",
664+
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/y59XBWNTM_Y)\n",
579665
"\n",
580666
"### Variables can start initialized as an Integer number data type \n",
581667
">```python \n",
@@ -758,7 +844,7 @@
758844
"#### What does using `type()` reveal?\n",
759845
"- **`str`**: when **type()** returns **str** that means it has evaluated a **string** characters (numbers, letters, punctuation...) in quotes \n",
760846
"- **`int`**: when **type()** returns **int** that means it has evaluated an **Integer** (+/- whole numbers) \n",
761-
"- **`float`**: when **type()** returns **`float`** that means it has evaluated decimal numbers (e.g. 3.33, 0.01, 9.9999 and 3.0), ...more later in the course"
847+
"- **`float`**: when **type()** returns **`float`** that means it has evaluated decimal numbers (e.g. 3.33, 0.01, 9.9999 and 3.0), ...more later in the course\n"
762848
]
763849
},
764850
{
@@ -1166,7 +1252,7 @@
11661252
"metadata": {},
11671253
"outputs": [],
11681254
"source": [
1169-
"# [ ] perform Integer addition in the variable named new_msg (add 2 or more Integers)\n",
1255+
"# [ ] perform Integer addition in the variable named new_sum (add 2 or more Integers)\n",
11701256
"new_sum = 0\n",
11711257
"print(new_sum)\n",
11721258
"\n",
@@ -1586,7 +1672,10 @@
15861672
"\n",
15871673
"## input() \n",
15881674
"### get information from users with `input()` \n",
1589-
"the **`input()`** function prompts the user to supply data returning that data as a string"
1675+
"the **`input()`** function prompts the user to supply data returning that data as a string\n",
1676+
"\n",
1677+
"# Walkthrough video for the rest of module 1\n",
1678+
"[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/wAdtOA5pld0)"
15901679
]
15911680
},
15921681
{
@@ -2168,7 +2257,7 @@
21682257
"collapsed": true
21692258
},
21702259
"source": [
2171-
"# Module 1 Part 9\n",
2260+
"# Module 1 Part 9 - Same items as M1 P8 but iterate, change them\n",
21722261
"## Strings: input, testing, formatting\n",
21732262
"- input() - gathering user input \n",
21742263
"- **print() formatting** \n",
@@ -2654,7 +2743,7 @@
26542743
"collapsed": true
26552744
},
26562745
"source": [
2657-
"# Module 1 Part 11\n",
2746+
"# Module 1 Part 11 - Same items as M1 P10, iterate, try something new\n",
26582747
"## Strings: input, testing, formatting\n",
26592748
"- input() - gathering user input \n",
26602749
"- print() formatting \n",

0 commit comments

Comments
 (0)