Skip to content

Commit 4ce548d

Browse files
authored
Merge pull request #24 from PythonFreeCourse/week3_summary_notebook_fix
fixed multiplication exercises that were effected by markdown
2 parents 786dc18 + 147e164 commit 4ce548d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

week3/Summary.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,18 @@
121121
"</p>\n",
122122
"\n",
123123
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = 1</code><br>\n",
124-
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash*ord('a')*1) % 397643</code>\n",
125-
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (1*97*1) % 397643 = 97</samp><br>\n",
124+
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash * ord('a') * 1) % 397643</code>\n",
125+
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (1 * 97 * 1) % 397643 = 97</samp><br>\n",
126126
"\n",
127127
"<p style=\"text-align: right; direction: rtl; float: right; clear: both;\">\n",
128128
" שימו לב שכאן הכפלנו ב־1, כיוון שמיקום האות הוא 0 ואנו מכפילים\n",
129129
" <em>באינדקס האות הבאה.</em>\n",
130130
"</p>\n",
131131
"\n",
132-
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash*ord('b')*2) % 397643</code>\n",
133-
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (97*98*2) % 397643 = 19012</samp>\n",
134-
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash*ord('a')*3) % 397643</code>\n",
135-
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (19012*97*3) % 397643 = 363133</samp>\n",
132+
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash * ord('b') * 2) % 397643</code>\n",
133+
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (97 * 98 * 2) % 397643 = 19012</samp>\n",
134+
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">temp_hash = (temp_hash * ord('a') * 3) % 397643</code>\n",
135+
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = (19012 * 97 * 3) % 397643 = 363133</samp>\n",
136136
"<code style=\"text-align: left; direction: ltr; float: left; clear: both;\">return temp_hash % 100297</code>\n",
137137
"<samp style=\"text-align: left; direction: ltr; float: left; clear: both;\"># temp_hash = 363133 % 100297 = <b>62242</b></samp>"
138138
]
@@ -853,7 +853,7 @@
853853
"name": "python",
854854
"nbconvert_exporter": "python",
855855
"pygments_lexer": "ipython3",
856-
"version": "3.7.4"
856+
"version": "3.7.1"
857857
}
858858
},
859859
"nbformat": 4,

0 commit comments

Comments
 (0)