Skip to content

Commit 48d1d8e

Browse files
authored
Merge pull request #11 from PythonFreeCourse/week1_polishes
Week1 polishes
2 parents ba167ef + 2d7d5f1 commit 48d1d8e

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

week1/4_Variables.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
"source": [
353353
"<p style=\"text-align: right; direction: rtl; float: right;\">\n",
354354
"קניתי 5 ארגזים גדולים של קרמבו. בארגז יש 10 קרמבו בכל שורה, ו־4 קרמבו בכל עמודה.<br>\n",
355-
"נסו לשים כל אחד מהנתונים שמצאתם בשאלה במשתנה, ולהדפיס את התשובה הנכונה.\n",
355+
"נסו לשים כל אחד מהנתונים שמצאתם בשאלה במשתנה, ולהדפיס כמה קרמבו יש לי.\n",
356356
"</p>"
357357
]
358358
},
@@ -463,7 +463,7 @@
463463
"name": "python",
464464
"nbconvert_exporter": "python",
465465
"pygments_lexer": "ipython3",
466-
"version": "3.7.1"
466+
"version": "3.7.3"
467467
}
468468
},
469469
"nbformat": 4,

week1/5_Input_and_Casting.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
"moshe_apples = input(\"How many apples does Moshe have? \")\n",
446446
"moshe_apples = int(moshe_apples) # <--- Casting\n",
447447
"moshe_apples = moshe_apples + 1\n",
448-
"print(\"Moshe have \" + moshe_apples + \" apples\")"
448+
"print(\"Moshe has \" + moshe_apples + \" apples\")"
449449
]
450450
},
451451
{
@@ -471,7 +471,7 @@
471471
"moshe_apples = int(moshe_apples) # <--- Casting to int\n",
472472
"moshe_apples = moshe_apples + 1\n",
473473
"moshe_apples = str(moshe_apples) # <--- Casting to str\n",
474-
"print(\"Moshe have \" + moshe_apples + \" apples\")"
474+
"print(\"Moshe has \" + moshe_apples + \" apples\")"
475475
]
476476
},
477477
{
@@ -581,7 +581,7 @@
581581
"מסטיק בזוקה קובע שעד גיל 21 תגיעו לירח. אנחנו פחות אופטימיים (לנו פשוט זה פחות עבד), ומנבאים לך הצלחה עד גיל 90.<br>\n",
582582
"כתוב תוכנה שמקבלת כקלט את השם שלך ואת הגיל שלך, ומחשבת עוד כמה שנים תגיע לירח לפי הנבואה שלנו.<br>\n",
583583
"התוכנה תדפיס את המשפט: <q dir=\"ltr\">X, wait another Y years.</q>, כאשר X יוחלף בשמך ו־Y יוחלף במספר השנים שתצטרך לחכות עד גיל 90.<br>\n",
584-
"<em>לדוגמה</em>: אם הכנסתך לתכנה שגילך הוא 25, התכנה תדפיס:\n",
584+
"<em>לדוגמה</em>: אם הכנסתך לתכנה שגילך הוא 25 ושמך הוא ים, התכנה תדפיס:\n",
585585
"</p>"
586586
]
587587
},

week1/6_Booleans.ipynb

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,23 @@
245245
"</p>"
246246
]
247247
},
248+
{
249+
"cell_type": "markdown",
250+
"metadata": {},
251+
"source": [
252+
"<div class=\"align-center\" style=\"display: flex; text-align: right; direction: rtl;\">\n",
253+
" <div style=\"display: flex; width: 10%; float: right; \">\n",
254+
" <img src=\"images/warning.png\" style=\"height: 50px !important;\" alt=\"אזהרה!\"> \n",
255+
" </div>\n",
256+
" <div style=\"width: 90%\">\n",
257+
" <p style=\"text-align: right; direction: rtl;\">\n",
258+
" טעות נפוצה בעת שימוש בערכים בוליאנים היא לא להתחשב ברגישות לאותיות גדולות/קטנות.<br>\n",
259+
" לדוגמה: <code>True</code> יהיה תקין בעוד <code>true</code> יקפיץ שגיאה.\n",
260+
" </p>\n",
261+
" </div>\n",
262+
"</div>"
263+
]
264+
},
248265
{
249266
"cell_type": "markdown",
250267
"metadata": {},
@@ -611,7 +628,7 @@
611628
"metadata": {},
612629
"source": [
613630
"<p style=\"text-align: right; direction: rtl; float: right;\">\n",
614-
"במחוז בולילנד השערורייתי, מותר לאכול פיצה רק מכיל 25 ומעלה.<br>\n",
631+
"במחוז בולילנד השערורייתי, מותר לאכול פיצה רק מגיל 25 ומעלה.<br>\n",
615632
"קבלו כקלט את גילו של המשתמש. הדפיסו לו <samp>True</samp> במידה והוא יכול לאכול פיצה בבולילנד, או <samp>False</samp> אם הוא לא יכול.<br>\n",
616633
"<em>לדוגמה:</em> אם דוד הזין שגילו הוא 23, עליכם להציג לו <samp>False</samp>.\n",
617634
"</p>"
@@ -657,7 +674,7 @@
657674
"name": "python",
658675
"nbconvert_exporter": "python",
659676
"pygments_lexer": "ipython3",
660-
"version": "3.7.1"
677+
"version": "3.7.3"
661678
}
662679
},
663680
"nbformat": 4,

0 commit comments

Comments
 (0)