Skip to content

Commit b2373b5

Browse files
committed
fall2021 changes
1 parent 2bb8761 commit b2373b5

File tree

18 files changed

+7230
-5124
lines changed

18 files changed

+7230
-5124
lines changed

content/lessons/01-Intro/Slides.ipynb

Lines changed: 575 additions & 546 deletions
Large diffs are not rendered by default.

content/lessons/02-Variables/Slides.ipynb

Lines changed: 642 additions & 630 deletions
Large diffs are not rendered by default.

content/lessons/03-Conditionals/Slides.ipynb

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

content/lessons/04-Iterations/Slides.ipynb

Lines changed: 832 additions & 593 deletions
Large diffs are not rendered by default.

content/lessons/05-Functions/Slides.ipynb

Lines changed: 831 additions & 642 deletions
Large diffs are not rendered by default.

content/lessons/06-Strings/Slides.ipynb

Lines changed: 555 additions & 412 deletions
Large diffs are not rendered by default.

content/lessons/07-Files/Slides.ipynb

Lines changed: 661 additions & 492 deletions
Large diffs are not rendered by default.

content/lessons/08-Lists/Slides.ipynb

Lines changed: 498 additions & 376 deletions
Large diffs are not rendered by default.
Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# No Google Doc Today\n",
10+
"\n",
11+
"- This will not be recorded"
12+
]
13+
},
14+
{
15+
"cell_type": "markdown",
16+
"metadata": {},
17+
"source": [
18+
"What is this dictionary thing? \n",
19+
"\n",
20+
"Stores multiple values under a single variable"
21+
]
22+
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": 2,
26+
"metadata": {},
27+
"outputs": [],
28+
"source": [
29+
"person_name = \"Mike\"\n",
30+
"person_age = 50\n",
31+
"person_faculty = True"
32+
]
33+
},
34+
{
35+
"cell_type": "code",
36+
"execution_count": 4,
37+
"metadata": {},
38+
"outputs": [],
39+
"source": [
40+
"person = {}\n",
41+
"person['name'] = \"Mike\"\n",
42+
"person['age'] = 50\n",
43+
"person['faculty'] = True"
44+
]
45+
},
46+
{
47+
"cell_type": "code",
48+
"execution_count": 5,
49+
"metadata": {},
50+
"outputs": [
51+
{
52+
"name": "stdout",
53+
"output_type": "stream",
54+
"text": [
55+
"{'name': 'Mike', 'age': 50, 'faculty': True}\n"
56+
]
57+
}
58+
],
59+
"source": [
60+
"print(person)"
61+
]
62+
},
63+
{
64+
"cell_type": "markdown",
65+
"metadata": {},
66+
"source": [
67+
"More Lab Questions...\n",
68+
"\n",
69+
"1. Check for key in a dictionary?\n",
70+
"2. Check for value in a dictionary?\n",
71+
"3. Relationship between JSON and Python dictionaries.\n"
72+
]
73+
},
74+
{
75+
"cell_type": "code",
76+
"execution_count": 6,
77+
"metadata": {},
78+
"outputs": [
79+
{
80+
"data": {
81+
"text/plain": [
82+
"False"
83+
]
84+
},
85+
"execution_count": 6,
86+
"metadata": {},
87+
"output_type": "execute_result"
88+
}
89+
],
90+
"source": [
91+
"'dob' in person.keys()"
92+
]
93+
},
94+
{
95+
"cell_type": "code",
96+
"execution_count": 8,
97+
"metadata": {},
98+
"outputs": [],
99+
"source": [
100+
"if 'dob' not in person.keys():\n",
101+
" dob = input(\"Enter your DOB\")\n",
102+
" person['dob'] = dob"
103+
]
104+
},
105+
{
106+
"cell_type": "code",
107+
"execution_count": 9,
108+
"metadata": {},
109+
"outputs": [
110+
{
111+
"data": {
112+
"text/plain": [
113+
"{'name': 'Mike', 'age': 50, 'faculty': True, 'dob': '1/1/90'}"
114+
]
115+
},
116+
"execution_count": 9,
117+
"metadata": {},
118+
"output_type": "execute_result"
119+
}
120+
],
121+
"source": [
122+
"person"
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": 10,
128+
"metadata": {},
129+
"outputs": [],
130+
"source": [
131+
"person['hjklsdagkljhfaSDGfkjasd'] = 10"
132+
]
133+
},
134+
{
135+
"cell_type": "code",
136+
"execution_count": 11,
137+
"metadata": {},
138+
"outputs": [
139+
{
140+
"name": "stdout",
141+
"output_type": "stream",
142+
"text": [
143+
"{'name': 'Mike', 'age': 50, 'faculty': True, 'dob': '1/1/90', 'hjklsdagkljhfaSDGfkjasd': 10}\n"
144+
]
145+
}
146+
],
147+
"source": [
148+
"print(person)"
149+
]
150+
},
151+
{
152+
"cell_type": "code",
153+
"execution_count": 13,
154+
"metadata": {},
155+
"outputs": [
156+
{
157+
"data": {
158+
"text/plain": [
159+
"True"
160+
]
161+
},
162+
"execution_count": 13,
163+
"metadata": {},
164+
"output_type": "execute_result"
165+
}
166+
],
167+
"source": [
168+
"50 in person.values()"
169+
]
170+
},
171+
{
172+
"cell_type": "code",
173+
"execution_count": null,
174+
"metadata": {},
175+
"outputs": [],
176+
"source": []
177+
}
178+
],
179+
"metadata": {
180+
"kernelspec": {
181+
"display_name": "Python 3",
182+
"language": "python",
183+
"name": "python3"
184+
},
185+
"language_info": {
186+
"codemirror_mode": {
187+
"name": "ipython",
188+
"version": 3
189+
},
190+
"file_extension": ".py",
191+
"mimetype": "text/x-python",
192+
"name": "python",
193+
"nbconvert_exporter": "python",
194+
"pygments_lexer": "ipython3",
195+
"version": "3.8.6"
196+
}
197+
},
198+
"nbformat": 4,
199+
"nbformat_minor": 4
200+
}

0 commit comments

Comments
 (0)