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
Copy file name to clipboardExpand all lines: translations/fa-farsi/section1-temp.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -387,7 +387,7 @@ some_dict[5.0] = "Ruby"
387
387
some_dict[5] ="Python"
388
388
```
389
389
390
-
**Output:**
390
+
**خروجی:**
391
391
392
392
```py
393
393
>>> some_dict[5.5]
@@ -449,7 +449,7 @@ class WTF:
449
449
pass
450
450
```
451
451
452
-
**Output:**
452
+
**خروجی:**
453
453
```py
454
454
>>> WTF() == WTF() # دو نمونه متفاوت از یک کلاس نمیتونند برابر هم باشند
455
455
False
@@ -519,7 +519,7 @@ class OrderedDictWithHash(OrderedDict):
519
519
__hash__=lambdaself: 0
520
520
```
521
521
522
-
**Output**
522
+
**خروجی**
523
523
```py
524
524
>>> dictionary == ordered_dict # اگر مقدار اولی با دومی برابره
525
525
True
@@ -643,7 +643,7 @@ Iteration 0
643
643
644
644
```
645
645
646
-
#### 💡 Explanation:
646
+
#### 💡 توضیحات:
647
647
648
648
- وقتی یک عبارت `return`، `break` یا `continue` داخل بخش `try` از یک عبارت "try...finally" اجرا میشه، بخش `fianlly` هم هنگام خارج شدن اجرا میشه.
649
649
- مقدار بازگشتی یک تابع از طریق آخرین عبارت `return` که داخل تابع اجرا میشه، مشخص میشه. از اونجایی که بخش `finally` همیشه اجرا میشه، عبارت `return` که داخل بخش `finally` هست آخرین عبارتیه که اجرا میشه.
@@ -661,7 +661,7 @@ for i, some_dict[i] in enumerate(some_string):
0 commit comments