From d83c5034926e7d53452bdceef2e426e6fe3e410e Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月14日 17:50:08 +0300 Subject: [PATCH 1/7] Redacted some of Harry's quotes for better readability --- week1/1_Strings_and_Output.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/week1/1_Strings_and_Output.ipynb b/week1/1_Strings_and_Output.ipynb index e53b74c..91b22cb 100644 --- a/week1/1_Strings_and_Output.ipynb +++ b/week1/1_Strings_and_Output.ipynb @@ -213,7 +213,7 @@ }, "outputs": [], "source": [ - "print('\"Why were you lurking under our window?\" \"Yes - yes, good point, Petunia! What were you doing under our windows, boy?\" \"Listening to the news,\" said Harry in a resigned voice. His aunt and uncle exchanged looks of outrage. \"Listening to the news! Again?\" \"Well, it changes every day, you see,\" said Harry.')" + "print('\"Listening to the news,\" said Harry in a resigned voice. His aunt and uncle exchanged looks of outrage. \"Listening to the news! Again?\" \"Well, it changes every day, you see,\" said Harry.')" ] }, { @@ -367,7 +367,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.1" + "version": "3.7.3" } }, "nbformat": 4, From 6b590a3b7bdff1f319021cf46f0dddff23506f70 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月14日 18:16:46 +0300 Subject: [PATCH 2/7] Added the missing question --- week1/4_Variables.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/week1/4_Variables.ipynb b/week1/4_Variables.ipynb index 990ef18..96fec9d 100644 --- a/week1/4_Variables.ipynb +++ b/week1/4_Variables.ipynb @@ -352,7 +352,7 @@ "source": [ "

\n", "קניתי 5 ארגזים גדולים של קרמבו. בארגז יש 10 קרמבו בכל שורה, ו־4 קרמבו בכל עמודה.
\n", - "נסו לשים כל אחד מהנתונים שמצאתם בשאלה במשתנה, ולהדפיס את התשובה הנכונה.\n", + "נסו לשים כל אחד מהנתונים שמצאתם בשאלה במשתנה, ולהדפיס כמה קרמבו יש לי.\n", "

" ] }, @@ -463,7 +463,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.1" + "version": "3.7.3" } }, "nbformat": 4, From b3e7b2e9496c4c2670b875ab2059474893527742 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月14日 18:32:31 +0300 Subject: [PATCH 3/7] Fixed grammar and added name parameter to example --- week1/5_Input_and_Casting.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/week1/5_Input_and_Casting.ipynb b/week1/5_Input_and_Casting.ipynb index 854f63c..843c052 100644 --- a/week1/5_Input_and_Casting.ipynb +++ b/week1/5_Input_and_Casting.ipynb @@ -445,7 +445,7 @@ "moshe_apples = input(\"How many apples does Moshe have? \")\n", "moshe_apples = int(moshe_apples) # <--- Casting\n", "moshe_apples = moshe_apples + 1\n", - "print(\"Moshe have \" + moshe_apples + \" apples\")" + "print(\"Moshe has \" + moshe_apples + \" apples\")" ] }, { @@ -471,7 +471,7 @@ "moshe_apples = int(moshe_apples) # <--- Casting to int\n", "moshe_apples = moshe_apples + 1\n", "moshe_apples = str(moshe_apples) # <--- Casting to str\n", - "print(\"Moshe have \" + moshe_apples + \" apples\")" + "print(\"Moshe has \" + moshe_apples + \" apples\")" ] }, { @@ -581,7 +581,7 @@ "מסטיק בזוקה קובע שעד גיל 21 תגיעו לירח. אנחנו פחות אופטימיים (לנו פשוט זה פחות עבד), ומנבאים לך הצלחה עד גיל 90.
\n", "כתוב תוכנה שמקבלת כקלט את השם שלך ואת הגיל שלך, ומחשבת עוד כמה שנים תגיע לירח לפי הנבואה שלנו.
\n", "התוכנה תדפיס את המשפט: X, wait another Y years., כאשר X יוחלף בשמך ו־Y יוחלף במספר השנים שתצטרך לחכות עד גיל 90.
\n", - "לדוגמה: אם הכנסתך לתכנה שגילך הוא 25, התכנה תדפיס:\n", + "לדוגמה: אם הכנסתך לתכנה שגילך הוא 25 ושמך הוא ים, התכנה תדפיס:\n", "

" ] }, From f447ca2f358f5aaec9717c776824ab892a40c093 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月15日 00:52:31 +0300 Subject: [PATCH 4/7] Warning for correct boolean usage --- week1/6_Booleans.ipynb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/week1/6_Booleans.ipynb b/week1/6_Booleans.ipynb index 5fa4c5f..7de671d 100644 --- a/week1/6_Booleans.ipynb +++ b/week1/6_Booleans.ipynb @@ -245,6 +245,23 @@ "

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "
\n", + "
\n", + " \ \n", + "
\n", + "
\n", + "

\n", + " טעות נפוצה בעת שימוש בערכים בוליאנים היא לא להתחשב ברגישות לאותיות גדולות/קטנות.
\n", + " לדוגמא: True יהיה תקין בעוד true יקפיץ שגיאה.\n", + "

\n", + "
\n", + "
" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -657,7 +674,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.1" + "version": "3.7.3" } }, "nbformat": 4, From eac79e41df08b769168825d2878f32c1ca3a0339 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月15日 00:54:58 +0300 Subject: [PATCH 5/7] Typo --- week1/6_Booleans.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week1/6_Booleans.ipynb b/week1/6_Booleans.ipynb index 7de671d..ca2f3ed 100644 --- a/week1/6_Booleans.ipynb +++ b/week1/6_Booleans.ipynb @@ -628,7 +628,7 @@ "metadata": {}, "source": [ "

\n", - "במחוז בולילנד השערורייתי, מותר לאכול פיצה רק מכיל 25 ומעלה.
\n", + "במחוז בולילנד השערורייתי, מותר לאכול פיצה רק מגיל 25 ומעלה.
\n", "קבלו כקלט את גילו של המשתמש. הדפיסו לו True במידה והוא יכול לאכול פיצה בבולילנד, או False אם הוא לא יכול.
\n", "לדוגמה: אם דוד הזין שגילו הוא 23, עליכם להציג לו False.\n", "

" From 5d4150ae0520df96b6c4952e221f378edf937031 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月15日 01:04:24 +0300 Subject: [PATCH 6/7] Typo --- week1/6_Booleans.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week1/6_Booleans.ipynb b/week1/6_Booleans.ipynb index ca2f3ed..ec6d7b1 100644 --- a/week1/6_Booleans.ipynb +++ b/week1/6_Booleans.ipynb @@ -256,7 +256,7 @@ "
\n", "

\n", " טעות נפוצה בעת שימוש בערכים בוליאנים היא לא להתחשב ברגישות לאותיות גדולות/קטנות.
\n", - " לדוגמא: True יהיה תקין בעוד true יקפיץ שגיאה.\n", + " לדוגמה: True יהיה תקין בעוד true יקפיץ שגיאה.\n", "

\n", "
\n", "" From 2d7d5f19179716249947ada19f1c5ada6333a960 Mon Sep 17 00:00:00 2001 From: Ido Elkabetz Date: 2019年4月15日 01:36:20 +0300 Subject: [PATCH 7/7] Revert "Redacted some of Harry's quotes for better readability" This reverts commit d83c5034926e7d53452bdceef2e426e6fe3e410e. --- week1/1_Strings_and_Output.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/week1/1_Strings_and_Output.ipynb b/week1/1_Strings_and_Output.ipynb index 91b22cb..e53b74c 100644 --- a/week1/1_Strings_and_Output.ipynb +++ b/week1/1_Strings_and_Output.ipynb @@ -213,7 +213,7 @@ }, "outputs": [], "source": [ - "print('\"Listening to the news,\" said Harry in a resigned voice. His aunt and uncle exchanged looks of outrage. \"Listening to the news! Again?\" \"Well, it changes every day, you see,\" said Harry.')" + "print('\"Why were you lurking under our window?\" \"Yes - yes, good point, Petunia! What were you doing under our windows, boy?\" \"Listening to the news,\" said Harry in a resigned voice. His aunt and uncle exchanged looks of outrage. \"Listening to the news! Again?\" \"Well, it changes every day, you see,\" said Harry.')" ] }, { @@ -367,7 +367,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.7.1" } }, "nbformat": 4,

AltStyle によって変換されたページ (->オリジナル) /