You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" נהוג לרשום את הסוגריים בסמוך למילה `print`. אם תשכחו סוגריים, או תפתחו סוגריים ותשכחו לסגור אותם, פייתון יתבכיין. זה לא באמת מפחיד אותנו, אבל כדאי לזכור שזו אחת הסיבות שאתם עלולים להתקל בהודעות שגיאה.\n",
" נהוג לרשום את הסוגריים בסמוך למילה `print`. אם תשכחו סוגריים, או תפתחו סוגריים ותשכחו לסגור אותם, פייתון יתריע בפניכם על שגיאה. זה לא באמת מפחיד אותנו, אבל כדאי לזכור שזו אחת הסיבות שאתם עלולים להתקל בהודעות שגיאה.\n",
"למרות השם הרשמי, מחרוזת היא בסך הכל רצף של תווים. מחרוזת יכולה להיות \"שלום עולם\", התוכן של הספר \"הארי פוטר\" ואפילו האות \"ש\" לבדה.<br>\n",
"במקרה שלנו, המחרוזת היא `\"Hello World\"`.<br>\n",
"כדי שפייתון יזהה שמדובר במחרוזת, אנחנו נהיה חייבים להקיף את המחרוזת בגרש (צ'וקו) או גרשיים (צ'וקיים). פייתון זורם ולא באמת אכפת לו במה תשתמשו, כל עוד תתחילו ותסיימו את המחרוזת שלכם עם אותו סימן.<br>\n",
"כדי שפייתון יזהה שמדובר במחרוזת, אנחנו נהיה חייבים להקיף את המחרוזת בגרש (צ'וקו) או גרשיים (צ'וקיים). פייתון זורם ולא באמת אכפת לו במה תשתמשו, כל עוד תתחילו בגרש ותסיימו בגרש, או תתחילו בגרשיים ותסיימו בגרשיים.<br>\n",
"בואו נסתכל על כמה דוגמאות:\n",
"</p>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"Hello World\")"
Expand All
@@ -166,10 +178,12 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print('Hello World') # גם צ'וקו עובד!"
"print('Hello World')"
]
},
{
Expand All
@@ -178,13 +192,15 @@
"metadata": {},
"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('\"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.')"
" טעות נפוצה בקרב אנשים שמצטרפים לעולם התכנות, היא לשכוח את הגרש או את הגרשיים בסיום ו/או בתחילת המחרוזת. אם תשכחו אותם, פייתון עלול להתבכיין. זה לא באמת מפחיד אותנו, אבל כדאי לזכור שזו אחת הסיבות שאתם עלולים להתקל בהודעות שגיאה.\n",
" טעות נפוצה בקרב אנשים שמצטרפים לעולם התכנות, היא לשכוח את הגרש או את הגרשיים בסיום ו/או בתחילת המחרוזת. אם תשכחו אותם, פייתון עלול להתריע בפניכם על שגיאה. זה לא באמת מפחיד אותנו, אבל כדאי לזכור שזו אחת הסיבות שאתם עלולים להתקל בהודעות שגיאה.\n",
" </p>\n",
"</div>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<p style=\"text-align: right; direction: rtl; float: right;\">הנה דוגמה לטעות שכזו, שתגרום לפייתון להתריע לכם על שגיאה:</p>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(Hello World) # דוגמה להדפסה בלי גרשיים שנכשלת וגורמת לפייתון לבכות"
"print(Hello World)"
]
},
{
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.