Skip to content

Commit 448e82f

Browse files
committed
Fix few problems in week5 notebooks
1 parent 4e78afc commit 448e82f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

week5/2_Functions_Part_2.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@
14911491
" תחזיר <samp dir=\"ltr\">44</samp>\n",
14921492
" </li>\n",
14931493
" <li>\n",
1494-
" הקריאה <code dir=\"ltr\">get_recipe_price({'chocolate': 18, 'milk': 8}, optional=['milk'], chocolate=300)</code><br>\n",
1494+
" הקריאה <code dir=\"ltr\">get_recipe_price({'chocolate': 18, 'milk': 8}, optionals=['milk'], chocolate=300)</code><br>\n",
14951495
" תחזיר <samp dir=\"ltr\">54</samp>\n",
14961496
" </li>\n",
14971497
" <li>\n",

week5/3_Generators.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -706,9 +706,9 @@
706706
"source": [
707707
"def find_pythagorean_triples(upper_bound=10_000):\n",
708708
" pythagorean_triples = []\n",
709-
" for a in range(2, upper_bound):\n",
710-
" for b in range(1, a):\n",
711-
" for c in range(1, b):\n",
709+
" for c in range(3, upper_bound):\n",
710+
" for b in range(2, c):\n",
711+
" for a in range(1, b):\n",
712712
" if a ** 2 + b **2 == c ** 2:\n",
713713
" pythagorean_triples.append((a, b, c))\n",
714714
" return pythagorean_triples\n",
@@ -1214,7 +1214,7 @@
12141214
"<ul style=\"text-align: right; direction: rtl; float: right; clear: both;\">\n",
12151215
" <li>רול סושי בעל 6 יחידות הוא מנה מושלמת לחלוקה, כיוון שאפשר לחלק אותו לאדם 1, ל־2 אנשים או ל־3 אנשים. $1+2+3=6$.</li>\n",
12161216
" <li>רול סושי בעל 8 יחידות הוא לא מנה מושלמת לחלוקה, כי אפשר לחלק אותו לאדם 1, ל־2 אנשים או ל־4 אנשים. $1+2+4 \\neq 8$.</li>\n",
1217-
" <li>רול בעל 12 יחידות גם הוא לא מנה מושלמת לחלוקה – $1 + 2 + 3 + 4 + 6 \\neq 16$.</li>\n",
1217+
" <li>רול בעל 12 יחידות גם הוא לא מנה מושלמת לחלוקה – $1 + 2 + 3 + 4 + 6 \\neq 12$.</li>\n",
12181218
" <li>רול בעל 28 יחידות הוא בהחלט מנה מושלמת לחלוקה – $1 + 2 + 4 + 7 + 14 = 28$.</li>\n",
12191219
"</ul>"
12201220
]
@@ -1240,7 +1240,7 @@
12401240
"metadata": {},
12411241
"source": [
12421242
"<p style=\"text-align: right; direction: rtl; float: right; clear: both;\">\n",
1243-
" בקובץ resources/logo.png מופיע לוגו הקורס, ובתוכו מוכמנים מסרים סודיים אחדים.<br>\n",
1243+
" בקובץ resources/logo.jpg מופיע לוגו הקורס, ובתוכו מוכמנים מסרים סודיים אחדים.<br>\n",
12441244
" המסרים הם מחרוזות באורך 5 אותיות לפחות, כתובים באותיות אנגליות קטנות בלבד ומסתיימים בסימן קריאה.\n",
12451245
"</p>\n",
12461246
"\n",

week5/resources/potter.zip

1.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)