mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-03 05:02:01 -05:00
Convert single backtick code sections to triple backtick code sections for Arabic Guide articles (13 of 15) (#36240)
* fix: converted single to triple backticks13 * fix: added prefix Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: removed language in wrong place Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: add language postfix Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: removed language in wrong place Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -10,23 +10,26 @@ localeTitle: تعرف على مجموعات بايثون
|
||||
|
||||
_لا_ يمكن استخدام الأقواس المتعرجة ، `{}` ، لإنشاء مجموعة فارغة:
|
||||
|
||||
`>>> not_set = {} # set constructor must be used to make empty sets.
|
||||
>>> type(not_set) # Empty curly brackets create empty dictionaries.
|
||||
<class 'dict'>
|
||||
`
|
||||
```python
|
||||
>>> not_set = {} # set constructor must be used to make empty sets.
|
||||
>>> type(not_set) # Empty curly brackets create empty dictionaries.
|
||||
<class 'dict'>
|
||||
```
|
||||
|
||||
يمكنك فقط إنشاء مجموعة فارغة باستخدام طريقة `set()` .
|
||||
|
||||
`>>> example_set = set()
|
||||
>>> type(example_set)
|
||||
<class 'set'>
|
||||
`
|
||||
```python
|
||||
>>> example_set = set()
|
||||
>>> type(example_set)
|
||||
<class 'set'>
|
||||
```
|
||||
|
||||
ومع ذلك ، إذا تم تضمين العناصر داخل الأقواس المتعرجة ، فسيكون بناء الجملة مقبولًا لإنشاء مجموعة.
|
||||
|
||||
`>>> example_set_2 = {1, 2, 3}
|
||||
>>> type(example_set_2)
|
||||
<class 'set'>
|
||||
`
|
||||
```python
|
||||
>>> example_set_2 = {1, 2, 3}
|
||||
>>> type(example_set_2)
|
||||
<class 'set'>
|
||||
```
|
||||
|
||||
\`
|
||||
Reference in New Issue
Block a user