Skip to content

Commit b3e7b2e

Browse files
committed
Fixed grammar and added name parameter to example
1 parent 6b590a3 commit b3e7b2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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
},

0 commit comments

Comments
 (0)