Skip to content

Commit 22c4484

Browse files
committed
Ran nbstripout
1 parent c2bb167 commit 22c4484

19 files changed

Lines changed: 545 additions & 2622 deletions

notes/C1-Variables.ipynb

Lines changed: 29 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,9 @@
114114
},
115115
{
116116
"cell_type": "code",
117-
"execution_count": 7,
118-
"metadata": {},
119-
"outputs": [
120-
{
121-
"name": "stdout",
122-
"output_type": "stream",
123-
"text": [
124-
"Percentage of men:\n",
125-
"41.17647058823529\n"
126-
]
127-
}
128-
],
117+
"execution_count": null,
118+
"metadata": {},
119+
"outputs": [],
129120
"source": [
130121
"males = 7\n",
131122
"females = 10\n",
@@ -150,18 +141,9 @@
150141
},
151142
{
152143
"cell_type": "code",
153-
"execution_count": 9,
154-
"metadata": {},
155-
"outputs": [
156-
{
157-
"name": "stdout",
158-
"output_type": "stream",
159-
"text": [
160-
"The cost of the meal will be:\n",
161-
"96.65625\n"
162-
]
163-
}
164-
],
144+
"execution_count": null,
145+
"metadata": {},
146+
"outputs": [],
165147
"source": [
166148
"food = 75\n",
167149
"tax = 8.875/100\n",
@@ -182,7 +164,7 @@
182164
},
183165
{
184166
"cell_type": "code",
185-
"execution_count": 10,
167+
"execution_count": null,
186168
"metadata": {},
187169
"outputs": [],
188170
"source": [
@@ -198,18 +180,9 @@
198180
},
199181
{
200182
"cell_type": "code",
201-
"execution_count": 11,
202-
"metadata": {},
203-
"outputs": [
204-
{
205-
"name": "stdout",
206-
"output_type": "stream",
207-
"text": [
208-
"The cost of the meal will be:\n",
209-
"96.65625\n"
210-
]
211-
}
212-
],
183+
"execution_count": null,
184+
"metadata": {},
185+
"outputs": [],
213186
"source": [
214187
"print(\"The cost of the meal will be:\")\n",
215188
"print(cost)"
@@ -226,18 +199,9 @@
226199
},
227200
{
228201
"cell_type": "code",
229-
"execution_count": 12,
230-
"metadata": {},
231-
"outputs": [
232-
{
233-
"name": "stdout",
234-
"output_type": "stream",
235-
"text": [
236-
"The cost of the meal will be:\n",
237-
"128.875\n"
238-
]
239-
}
240-
],
202+
"execution_count": null,
203+
"metadata": {},
204+
"outputs": [],
241205
"source": [
242206
"cost = food + food * tax + food * tip\n",
243207
"print(\"The cost of the meal will be:\")\n",
@@ -269,7 +233,7 @@
269233
},
270234
{
271235
"cell_type": "code",
272-
"execution_count": 1,
236+
"execution_count": null,
273237
"metadata": {},
274238
"outputs": [],
275239
"source": [
@@ -282,17 +246,9 @@
282246
},
283247
{
284248
"cell_type": "code",
285-
"execution_count": 2,
286-
"metadata": {},
287-
"outputs": [
288-
{
289-
"name": "stdout",
290-
"output_type": "stream",
291-
"text": [
292-
"The yearly value of this offer is 287500.0\n"
293-
]
294-
}
295-
],
249+
"execution_count": null,
250+
"metadata": {},
251+
"outputs": [],
296252
"source": [
297253
"# Base scenario\n",
298254
"yearly_value = base_salary + expected_bonus*base_salary + equity/years_vesting\n",
@@ -308,17 +264,9 @@
308264
},
309265
{
310266
"cell_type": "code",
311-
"execution_count": 3,
312-
"metadata": {},
313-
"outputs": [
314-
{
315-
"name": "stdout",
316-
"output_type": "stream",
317-
"text": [
318-
"The yearly value of this offer is 287500.0\n"
319-
]
320-
}
321-
],
267+
"execution_count": null,
268+
"metadata": {},
269+
"outputs": [],
322270
"source": [
323271
"# Same computation as above, but in three steps\n",
324272
"# We start by adding the base_salary in the yearly_value\n",
@@ -345,17 +293,9 @@
345293
},
346294
{
347295
"cell_type": "code",
348-
"execution_count": 13,
349-
"metadata": {},
350-
"outputs": [
351-
{
352-
"name": "stdout",
353-
"output_type": "stream",
354-
"text": [
355-
"The yearly value of this offer is 187500.0\n"
356-
]
357-
}
358-
],
296+
"execution_count": null,
297+
"metadata": {},
298+
"outputs": [],
359299
"source": [
360300
"# Same computation as above, but using the += shorthand\n",
361301
"yearly_value = base_salary \n",
@@ -375,35 +315,19 @@
375315
},
376316
{
377317
"cell_type": "code",
378-
"execution_count": 6,
379-
"metadata": {},
380-
"outputs": [
381-
{
382-
"name": "stdout",
383-
"output_type": "stream",
384-
"text": [
385-
"The yearly value of this offer is 187500.0\n"
386-
]
387-
}
388-
],
318+
"execution_count": null,
319+
"metadata": {},
320+
"outputs": [],
389321
"source": [
390322
"# Crash and burn scenario. Equity is worth nothing at the end\n",
391323
"# your code here"
392324
]
393325
},
394326
{
395327
"cell_type": "code",
396-
"execution_count": 5,
397-
"metadata": {},
398-
"outputs": [
399-
{
400-
"name": "stdout",
401-
"output_type": "stream",
402-
"text": [
403-
"The yearly value of this offer is 1187500.0\n"
404-
]
405-
}
406-
],
328+
"execution_count": null,
329+
"metadata": {},
330+
"outputs": [],
407331
"source": [
408332
"# Optimistic scenario. The company goes up a lot, and equity is worth 10x more\n",
409333
"# your code here"

0 commit comments

Comments
 (0)