Skip to content

Commit 270c287

Browse files
committed
Minor typo fixes
1 parent 6d3a627 commit 270c287

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

week2/2_Conditions_part2.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"shoes_in_my_drawer = int(input(\"How many shoes do you have in your drawer? \"))\n",
5151
"\n",
5252
"if shoes_in_my_drawer % 2 == 1:\n",
53-
" print(\"You have odd number of shoes. Something is wrong!\")"
53+
" print(\"You have an odd number of shoes. Something is wrong!\")"
5454
]
5555
},
5656
{
@@ -103,9 +103,9 @@
103103
"shoes_in_my_drawer = int(input(\"How many shoes do you have in your drawer? \"))\n",
104104
"\n",
105105
"if shoes_in_my_drawer % 2 == 1:\n",
106-
" print(\"You have odd number of shoes. Something is wrong!\")\n",
106+
" print(\"You have an odd number of shoes. Something is wrong!\")\n",
107107
"if shoes_in_my_drawer % 2 == 0:\n",
108-
" print(\"You have even number of shoes. Congratulations!\")"
108+
" print(\"You have an even number of shoes. Congratulations!\")"
109109
]
110110
},
111111
{
@@ -138,9 +138,9 @@
138138
"shoes_in_my_drawer = int(input(\"How many shoes do you have in your drawer? \"))\n",
139139
"\n",
140140
"if shoes_in_my_drawer % 2 == 1:\n",
141-
" print(\"You have odd number of shoes. Something is wrong!\")\n",
141+
" print(\"You have an odd number of shoes. Something is wrong!\")\n",
142142
"else:\n",
143-
" print(\"You have even number of shoes. Congratulations!\")"
143+
" print(\"You have an even number of shoes. Congratulations!\")"
144144
]
145145
},
146146
{
@@ -184,7 +184,7 @@
184184
"metadata": {},
185185
"source": [
186186
"<figure>\n",
187-
" <img src=\"images/else-flow.svg?a=2\" alt=\"איור (גרף) להמחשה של זרימת התוכנה. מתחילים בלקבל קלט, עוברים לתנאי. אם הוא לא מתקיים, בודקים אם הדוד דלוק. אם הדוד דלוק, מכבים את הדוד ומשם עוברים לסוף התוכנית. אם התנאי ההתחלתי קטן מתקיים, מדליקים את הדוד, ואז מגיעים לסוף התוכנית.\">\n",
187+
" <img src=\"images/else-flow.svg\" style=\"display: block; margin-left: auto; margin-right: auto;\" alt=\"איור (גרף) להמחשה של זרימת התוכנה. מתחילים בלקבל קלט, עוברים לתנאי. אם הוא לא מתקיים, בודקים אם הדוד דלוק. אם הדוד דלוק, מכבים את הדוד ומשם עוברים לסוף התוכנית. אם התנאי ההתחלתי קטן מתקיים, מדליקים את הדוד, ואז מגיעים לסוף התוכנית.\">\n",
188188
" <figcaption style=\"text-align: center; direction: rtl;\"></figcaption>\n",
189189
"</figure>"
190190
]
@@ -298,7 +298,7 @@
298298
"metadata": {},
299299
"outputs": [],
300300
"source": [
301-
"copies_sold = int(input(\"How many copies you sold? \"))\n",
301+
"copies_sold = int(input(\"How many copies were sold? \"))\n",
302302
"\n",
303303
"# אנחנו משתמשים באותיות גדולות עבור שמות המשתנים האלו.\n",
304304
"# זו מוסכמה בין מתכנתים שמבקשת להדגיש שערכי המשתנים הם קבועים, ולא הולכים להשתנות במהלך התוכנית.\n",
@@ -320,7 +320,7 @@
320320
" if copies_sold >= SILVER_ALBUM:\n",
321321
" print(\"Silver album\")\n",
322322
" else:\n",
323-
" print(\"You album is not a best-seller\")"
323+
" print(\"Your album is not a best-seller\")"
324324
]
325325
},
326326
{
@@ -340,7 +340,7 @@
340340
"metadata": {},
341341
"outputs": [],
342342
"source": [
343-
"copies_sold = int(input(\"How many copies you sold? \"))\n",
343+
"copies_sold = int(input(\"How many copies were sold? \"))\n",
344344
"\n",
345345
"SILVER_ALBUM = 100000\n",
346346
"GOLD_ALBUM = 500000\n",
@@ -356,7 +356,7 @@
356356
"if copies_sold >= SILVER_ALBUM and copies_sold < GOLD_ALBUM:\n",
357357
" print(\"Silver album\")\n",
358358
"if copies_sold < SILVER_ALBUM:\n",
359-
" print(\"You album is not a best-seller\")"
359+
" print(\"Your album is not a best-seller\")"
360360
]
361361
},
362362
{
@@ -393,7 +393,7 @@
393393
"metadata": {},
394394
"outputs": [],
395395
"source": [
396-
"copies_sold = int(input(\"How many copies you sold? \"))\n",
396+
"copies_sold = int(input(\"How many copies were sold? \"))\n",
397397
"\n",
398398
"SILVER_ALBUM = 100000\n",
399399
"GOLD_ALBUM = 500000\n",
@@ -409,7 +409,7 @@
409409
"elif copies_sold >= SILVER_ALBUM:\n",
410410
" print(\"Silver album\")\n",
411411
"else:\n",
412-
" print(\"You album is not a best-seller\")"
412+
" print(\"Your album is not a best-seller\")"
413413
]
414414
},
415415
{

0 commit comments

Comments
 (0)