Skip to content

Commit 30c12ac

Browse files
committed
update terms
1 parent 29cbb62 commit 30c12ac

File tree

1 file changed

+81
-42
lines changed

1 file changed

+81
-42
lines changed

1_Basics/02.1_Python_Terms.ipynb

Lines changed: 81 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
"\n",
3636
"In data analytics, an object is like a record in your spreadsheet. Each record can have multiple fields, such as job title, location, and salary.\n",
3737
"\n",
38-
"**Object**: A data record with fields.\n"
38+
"**Object**: A data record with fields; an instance of a class.\n"
3939
]
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 69,
43+
"execution_count": 55,
4444
"id": "968ee59f",
4545
"metadata": {},
4646
"outputs": [
@@ -50,7 +50,7 @@
5050
"'Data Analyst'"
5151
]
5252
},
53-
"execution_count": 69,
53+
"execution_count": 55,
5454
"metadata": {},
5555
"output_type": "execute_result"
5656
}
@@ -61,7 +61,28 @@
6161
},
6262
{
6363
"cell_type": "code",
64-
"execution_count": 70,
64+
"execution_count": 56,
65+
"id": "34181ac4",
66+
"metadata": {},
67+
"outputs": [
68+
{
69+
"data": {
70+
"text/plain": [
71+
"str"
72+
]
73+
},
74+
"execution_count": 56,
75+
"metadata": {},
76+
"output_type": "execute_result"
77+
}
78+
],
79+
"source": [
80+
"type(\"Data Analyst\")"
81+
]
82+
},
83+
{
84+
"cell_type": "code",
85+
"execution_count": 57,
6586
"id": "53b471a2",
6687
"metadata": {},
6788
"outputs": [
@@ -71,7 +92,7 @@
7192
"90000"
7293
]
7394
},
74-
"execution_count": 70,
95+
"execution_count": 57,
7596
"metadata": {},
7697
"output_type": "execute_result"
7798
}
@@ -90,7 +111,7 @@
90111
},
91112
{
92113
"cell_type": "code",
93-
"execution_count": 6,
114+
"execution_count": 58,
94115
"id": "4d55db87",
95116
"metadata": {},
96117
"outputs": [
@@ -108,7 +129,7 @@
108129
},
109130
{
110131
"cell_type": "code",
111-
"execution_count": 9,
132+
"execution_count": 59,
112133
"id": "aaa5da4b",
113134
"metadata": {},
114135
"outputs": [
@@ -118,13 +139,13 @@
118139
"str"
119140
]
120141
},
121-
"execution_count": 9,
142+
"execution_count": 59,
122143
"metadata": {},
123144
"output_type": "execute_result"
124145
}
125146
],
126147
"source": [
127-
"# this is a class string object\n",
148+
"# this is an instance of the `type` class\n",
128149
"str"
129150
]
130151
},
@@ -137,41 +158,59 @@
137158
"\n",
138159
"Think of a variable as a cell in an Excel spreadsheet. You can store data in it, like a number, text, or a formula.\n",
139160
"\n",
140-
"**Variable**: A named cell that references an object."
161+
"**Variable**: A defined name that references an object."
141162
]
142163
},
143164
{
144165
"cell_type": "code",
145-
"execution_count": 1,
166+
"execution_count": 60,
146167
"id": "0fb0d189",
147168
"metadata": {},
148169
"outputs": [],
149170
"source": [
150171
"job_title = \"Data Analyst\"\n",
151-
"job_location = \"United States\"\n",
152-
"job_salary = 90000"
172+
"job_salary = 90000\n",
173+
"my_print_function = print"
153174
]
154175
},
155176
{
156177
"cell_type": "code",
157-
"execution_count": 3,
178+
"execution_count": 61,
179+
"id": "5199770e",
180+
"metadata": {},
181+
"outputs": [
182+
{
183+
"name": "stdout",
184+
"output_type": "stream",
185+
"text": [
186+
"Data Analyst 90000\n"
187+
]
188+
}
189+
],
190+
"source": [
191+
"my_print_function(job_title, job_salary)"
192+
]
193+
},
194+
{
195+
"cell_type": "code",
196+
"execution_count": 62,
158197
"id": "a03cbbf0",
159198
"metadata": {},
160199
"outputs": [
161200
{
162201
"data": {
163202
"text/plain": [
164-
"(4594639152, 4594645744, 4593144944)"
203+
"(4528218160, 4528508112, 4457027104)"
165204
]
166205
},
167-
"execution_count": 3,
206+
"execution_count": 62,
168207
"metadata": {},
169208
"output_type": "execute_result"
170209
}
171210
],
172211
"source": [
173212
"# each variable has a unique identifier\n",
174-
"id(job_title), id(job_location), id(job_salary)"
213+
"id(job_title), id(job_salary), id(my_print_function),"
175214
]
176215
},
177216
{
@@ -184,7 +223,7 @@
184223
},
185224
{
186225
"cell_type": "code",
187-
"execution_count": 2,
226+
"execution_count": 63,
188227
"id": "4b917379",
189228
"metadata": {},
190229
"outputs": [
@@ -194,7 +233,7 @@
194233
"'Data Analyst'"
195234
]
196235
},
197-
"execution_count": 2,
236+
"execution_count": 63,
198237
"metadata": {},
199238
"output_type": "execute_result"
200239
}
@@ -207,17 +246,17 @@
207246
},
208247
{
209248
"cell_type": "code",
210-
"execution_count": 5,
249+
"execution_count": 64,
211250
"id": "fc07b63c",
212251
"metadata": {},
213252
"outputs": [
214253
{
215254
"data": {
216255
"text/plain": [
217-
"(4594639152, 4594639152)"
256+
"(4528218160, 4528218160)"
218257
]
219258
},
220-
"execution_count": 5,
259+
"execution_count": 64,
221260
"metadata": {},
222261
"output_type": "execute_result"
223262
}
@@ -237,17 +276,17 @@
237276
},
238277
{
239278
"cell_type": "code",
240-
"execution_count": 8,
279+
"execution_count": 65,
241280
"id": "a5aa7f31",
242281
"metadata": {},
243282
"outputs": [
244283
{
245284
"data": {
246285
"text/plain": [
247-
"(4594562480, 4594554352)"
286+
"(4528619824, 4528440816)"
248287
]
249288
},
250-
"execution_count": 8,
289+
"execution_count": 65,
251290
"metadata": {},
252291
"output_type": "execute_result"
253292
}
@@ -274,7 +313,7 @@
274313
},
275314
{
276315
"cell_type": "code",
277-
"execution_count": 14,
316+
"execution_count": 66,
278317
"id": "2c21a898",
279318
"metadata": {},
280319
"outputs": [
@@ -301,7 +340,7 @@
301340
},
302341
{
303342
"cell_type": "code",
304-
"execution_count": 72,
343+
"execution_count": 67,
305344
"id": "66b6ee25",
306345
"metadata": {},
307346
"outputs": [],
@@ -312,7 +351,7 @@
312351
},
313352
{
314353
"cell_type": "code",
315-
"execution_count": 73,
354+
"execution_count": 68,
316355
"id": "a453263c",
317356
"metadata": {},
318357
"outputs": [
@@ -348,7 +387,7 @@
348387
},
349388
{
350389
"cell_type": "code",
351-
"execution_count": 74,
390+
"execution_count": 69,
352391
"id": "2cfd7804",
353392
"metadata": {},
354393
"outputs": [],
@@ -365,7 +404,7 @@
365404
},
366405
{
367406
"cell_type": "code",
368-
"execution_count": 75,
407+
"execution_count": 70,
369408
"id": "d0f7b6c5",
370409
"metadata": {},
371410
"outputs": [
@@ -375,7 +414,7 @@
375414
"__main__.JobPost"
376415
]
377416
},
378-
"execution_count": 75,
417+
"execution_count": 70,
379418
"metadata": {},
380419
"output_type": "execute_result"
381420
}
@@ -394,7 +433,7 @@
394433
},
395434
{
396435
"cell_type": "code",
397-
"execution_count": 13,
436+
"execution_count": 71,
398437
"id": "9796df59",
399438
"metadata": {},
400439
"outputs": [
@@ -404,7 +443,7 @@
404443
"str"
405444
]
406445
},
407-
"execution_count": 13,
446+
"execution_count": 71,
408447
"metadata": {},
409448
"output_type": "execute_result"
410449
}
@@ -423,7 +462,7 @@
423462
},
424463
{
425464
"cell_type": "code",
426-
"execution_count": 12,
465+
"execution_count": 72,
427466
"id": "ee9c97c9",
428467
"metadata": {},
429468
"outputs": [
@@ -871,7 +910,7 @@
871910
},
872911
{
873912
"cell_type": "code",
874-
"execution_count": 76,
913+
"execution_count": 73,
875914
"id": "38341fa0",
876915
"metadata": {},
877916
"outputs": [],
@@ -885,7 +924,7 @@
885924
},
886925
{
887926
"cell_type": "code",
888-
"execution_count": 77,
927+
"execution_count": 74,
889928
"id": "dcd89f8a",
890929
"metadata": {},
891930
"outputs": [],
@@ -895,7 +934,7 @@
895934
},
896935
{
897936
"cell_type": "code",
898-
"execution_count": 78,
937+
"execution_count": 75,
899938
"id": "fbd5b34d",
900939
"metadata": {},
901940
"outputs": [
@@ -905,7 +944,7 @@
905944
"'Data Engineer'"
906945
]
907946
},
908-
"execution_count": 78,
947+
"execution_count": 75,
909948
"metadata": {},
910949
"output_type": "execute_result"
911950
}
@@ -916,7 +955,7 @@
916955
},
917956
{
918957
"cell_type": "code",
919-
"execution_count": 79,
958+
"execution_count": 76,
920959
"id": "a6ccd019",
921960
"metadata": {},
922961
"outputs": [
@@ -926,7 +965,7 @@
926965
"425000"
927966
]
928967
},
929-
"execution_count": 79,
968+
"execution_count": 76,
930969
"metadata": {},
931970
"output_type": "execute_result"
932971
}
@@ -949,7 +988,7 @@
949988
},
950989
{
951990
"cell_type": "code",
952-
"execution_count": 80,
991+
"execution_count": 77,
953992
"id": "7b3c7c94",
954993
"metadata": {},
955994
"outputs": [],
@@ -966,7 +1005,7 @@
9661005
},
9671006
{
9681007
"cell_type": "code",
969-
"execution_count": 81,
1008+
"execution_count": 78,
9701009
"id": "00414ac1",
9711010
"metadata": {},
9721011
"outputs": [

0 commit comments

Comments
 (0)