| name | arabic-python-basics |
| name_ar | أساسيات بايثون |
| description | Python programming basics in Arabic |
| description_ar | أساسيات برمجة بايثون بالعربية |
| category | developer |
| language | ar |
| dialect | msa |
| rtl | true |
| platform_all | true |
| version | 1.0.0 |
| author | salman-shaikh |
الهدف
تعلم أساسيات لغة Python باللغة العربية.
المتغيرات وأنواع البيانات
name = "أحمد"
age = ٢٥
height = ١.٧٥
is_student = True
print(type(name))
print(type(age))
print(type(height))
print(type(is_student))
الهياكل
القوائم (Lists)
fruits = ["تفاح", "موز", "برتقال"]
fruits.append("عنب")
print(fruits[٠])
for fruit in fruits:
print(fruit)
القواميس (Dictionaries)
person = {
"name": "أحمد",
"age": ٢٥,
"city": "الرياض"
}
print(person["name"])
person["job"] = "مهندس"
for key, value in person.items():
print(f"{key}: {value}")
الشروط