Skip to content

Commit 9acfa51

Browse files
committed
Fixed CUNYTechPrep#12 part 2 and cleaned up empty cells
1 parent 2c91c98 commit 9acfa51

1 file changed

Lines changed: 5 additions & 34 deletions

File tree

homeworks/AT_intermediate-exercise_week3.ipynb

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"cell_type": "markdown",
110110
"metadata": {},
111111
"source": [
112-
"## #3 Write a function that takes a list of numbers and returns True of all number in the list are unique and returns False if the list contains duplicate numbers. \n",
112+
"## #3 Write a function that takes a list of numbers and returns True if all number in the list are unique and returns False if the list contains duplicate numbers. \n",
113113
"* Hint, maybe think of using a set()\n",
114114
"\n",
115115
"Input: input_list = [2,4,5,5,7,9]\n",
@@ -167,7 +167,7 @@
167167
},
168168
{
169169
"cell_type": "code",
170-
"execution_count": 5,
170+
"execution_count": 53,
171171
"metadata": {},
172172
"outputs": [
173173
{
@@ -180,7 +180,6 @@
180180
],
181181
"source": [
182182
"from collections import Counter\n",
183-
"punctuations = [' ', '\\n', '-', ]\n",
184183
"\n",
185184
"with open('../Week-03/intermediate/data/lil-wayne.txt', 'r') as file:\n",
186185
" text = file.read().upper()\n",
@@ -492,14 +491,14 @@
492491
},
493492
{
494493
"cell_type": "code",
495-
"execution_count": 15,
494+
"execution_count": 54,
496495
"metadata": {},
497496
"outputs": [
498497
{
499498
"name": "stdout",
500499
"output_type": "stream",
501500
"text": [
502-
"11425.0\n"
501+
"1142.5\n"
503502
]
504503
}
505504
],
@@ -508,31 +507,10 @@
508507
"word_per_page = 250\n",
509508
"number_of_pieces = 100\n",
510509
"\n",
511-
"each_chunk = (457 * 250)/10\n",
510+
"each_chunk = (457 * 250)/100\n",
512511
"print(each_chunk)"
513512
]
514513
},
515-
{
516-
"cell_type": "code",
517-
"execution_count": null,
518-
"metadata": {},
519-
"outputs": [],
520-
"source": []
521-
},
522-
{
523-
"cell_type": "code",
524-
"execution_count": null,
525-
"metadata": {},
526-
"outputs": [],
527-
"source": []
528-
},
529-
{
530-
"cell_type": "code",
531-
"execution_count": null,
532-
"metadata": {},
533-
"outputs": [],
534-
"source": []
535-
},
536514
{
537515
"cell_type": "markdown",
538516
"metadata": {},
@@ -1228,13 +1206,6 @@
12281206
"# as (key/index, value) pairs...a dictionary if you will\n",
12291207
"# After that its just a matter of manipulating the dictionary as needed "
12301208
]
1231-
},
1232-
{
1233-
"cell_type": "code",
1234-
"execution_count": null,
1235-
"metadata": {},
1236-
"outputs": [],
1237-
"source": []
12381209
}
12391210
],
12401211
"metadata": {

0 commit comments

Comments
 (0)