Skip to content

Commit 3b8b995

Browse files
committed
Add else, elif
1 parent a51b6a8 commit 3b8b995

5 files changed

Lines changed: 620 additions & 7 deletions

File tree

‎week2/1_Conditions.ipynb‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@
193193
"</p>\n",
194194
"\n",
195195
"<code><span style='background-color: #3C6478; color: white;'>if</span> <span style='background-color: #B5C689; color: white; font-family: Arial;'>התנאי שלכם, ביטוי בוליאני</span><span style='background-color: #F58B4C'>:</span>\n",
196-
"<span style='background-color: #CD594A'> </span><span dir=\"rtl\" style='direction: rtl; background-color: #43ABC9; color: white; font-family: Arial'>מה שאתם רוצים לעשות (גוף התנאי)</span>\n",
197-
"</code>\n",
196+
"<span style='background-color: #CD594A'> </span><span dir=\"rtl\" style='direction: rtl; background-color: #43ABC9; color: white; font-family: Arial'>מה שאתם רוצים לעשות (גוף התנאי)</span></code>\n",
198197
"\n",
199198
"<p style=\"text-align: right; direction: rtl; clear: both;\">\n",
200199
"נסביר:\n",
@@ -306,13 +305,27 @@
306305
"\n",
307306
"<p style=\"text-align: right; direction: rtl;\">\n",
308307
"עכשיו רק נשאר להתייחס למשתנה שהגדרנו למעלה, ולבדוק האם למשתמש מותר להכנס או לא. ולהדפיס הודעה מתאימה יופי!\n",
309-
"</p>\n",
310-
"\n",
311-
"<p style=\"text-align: right; direction: rtl;\">\n",
312-
"<strong>תרגול</strong>: נסו לשנות את הקוד שלמעלה, כך שהוא ישאל האם זה יום ההולדת של המשתמש רק אם הוא בן 17. בדקו שהקוד עדיין עובד כמצופה.\n",
313308
"</p>"
314309
]
315310
},
311+
{
312+
"cell_type": "markdown",
313+
"metadata": {},
314+
"source": [
315+
"<div class=\"align-center\" style=\"display: flex; text-align: right; direction: rtl;\">\n",
316+
" <div style=\"display: flex; width: 10%; float: right; \">\n",
317+
" <img src=\"images/exercise.svg\" style=\"height: 50px !important;\" alt=\"תרגול\"> \n",
318+
" </div>\n",
319+
" <div style=\"width: 90%\">\n",
320+
" <p style=\"text-align: right; direction: rtl; float: right;\">\n",
321+
" <strong>תרגול</strong>:\n",
322+
" נסו לשנות את הקוד שלמעלה, כך שהוא ישאל האם זה יום ההולדת של המשתמש רק אם הוא בן 17.<br>\n",
323+
" בדקו שהקוד עדיין עובד כמצופה.\n",
324+
" </p>\n",
325+
" </div>\n",
326+
"</div>"
327+
]
328+
},
316329
{
317330
"cell_type": "markdown",
318331
"metadata": {},

0 commit comments

Comments
 (0)