Skip to content

Commit f1ee03f

Browse files
committed
Updating the notebooks
1 parent c486320 commit f1ee03f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

chapters/chap10.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@
15591559
"source": [
15601560
"### Exercise\n",
15611561
"\n",
1562-
"Write function called `find_repeats` that takes a dictionary that maps from each key to a counter, like the result from `value_counts`.\n",
1562+
"Write a function called `find_repeats` that takes a dictionary that maps from each key to a counter, like the result from `value_counts`.\n",
15631563
"It should loop through the dictionary and return a list of keys that have counts greater than `1`.\n",
15641564
"You can use the following outline to get started."
15651565
]

chapters/chap12.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@
520520
"\n",
521521
"* `key=second_element` means the items will be sorted according to the frequencies of the words.\n",
522522
"\n",
523-
"* `reverse=True` means they items will be sorted in reverse order, with the most frequent words first."
523+
"* `reverse=True` means the items will be sorted in reverse order, with the most frequent words first."
524524
]
525525
},
526526
{
@@ -730,7 +730,7 @@
730730
"id": "22becbab",
731731
"metadata": {},
732732
"source": [
733-
"The we'll store the words as keys in a dictionary so we can use the `in` operator to check quickly whether a word is valid."
733+
"Then we'll store the words as keys in a dictionary so we can use the `in` operator to check quickly whether a word is valid."
734734
]
735735
},
736736
{

chapters/chap14.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@
907907
" \n",
908908
" carry, time.second = divmod(time.second, 60)\n",
909909
" carry, time.minute = divmod(time.minute + carry, 60)\n",
910-
" carry, time.hour = divmod(time.hour + carry, 60)"
910+
" carry, time.hour = divmod(time.hour + carry, 24)"
911911
]
912912
},
913913
{

chapters/chap15.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
"id": "e01e9673",
605605
"metadata": {},
606606
"source": [
607-
"## The __init__ method\n",
607+
"## The init method\n",
608608
"\n",
609609
"The most special of the special methods is `__init__`, so-called because it initializes the attributes of a new object.\n",
610610
"An `__init__` method for the `Time` class might look like this:"

0 commit comments

Comments
 (0)