0% found this document useful (0 votes)
7 views12 pages

تعلم بايثون: دليل المبتدئين

The document discusses the Python programming language, its history, and its features. It highlights Python's versatility, ease of use, and compatibility with various operating systems. Additionally, it provides a brief introduction to writing a simple Python program and the concept of variables.

Uploaded by

a.algbory
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views12 pages

تعلم بايثون: دليل المبتدئين

The document discusses the Python programming language, its history, and its features. It highlights Python's versatility, ease of use, and compatibility with various operating systems. Additionally, it provides a brief introduction to writing a simple Python program and the concept of variables.

Uploaded by

a.algbory
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

)PYTHON( ‫ثو‬‫ا‬ ‫جة‬‫بر‬ ‫غة‬ ‫يا‬‫ا‬

‫ـــــو‬ ‫ر‬ :‫تا‬


)PYTHON( ‫ثو‬‫ا‬ ‫جة‬‫بر‬ ‫غة‬ ‫يا‬‫ا‬

‫ـــــو‬ ‫ر‬ :‫تا‬


‫ ؟‬‫ثو‬‫با‬ ‫غة‬  ‫ا‬ -1
Guido ‫ا‬‫تكر‬ ‫مستو‬ ‫ية‬‫ا‬ ‫جة‬‫ر‬ ‫غة‬   ‫ية‬‫عر‬ ‫غة‬‫ا‬ ‫ثو‬‫ا‬ ‫كت‬
Centrum Wiskunde & ‫حا‬ ‫ز‬‫ر‬  ‫م‬ ‫ناء‬Van Rossum
.1986 ‫ا‬ Informatica
.‫جمي‬ ‫تنا‬  ‫تصب‬ ‫نها‬ ‫د‬  ‫شر‬  1991 ‫ا‬
‫نها‬ ‫د‬‫د‬ ‫د‬   ‫يها‬ ‫ا‬‫مز‬  ‫كثير‬ ‫ة‬‫ا‬  ‫غة‬ ‫ذ‬ ‫ر‬‫طو‬ ‫تمر‬
‫ها‬‫تخد‬ ‫مك‬ ‫ت‬  ‫عصر‬ ‫غا‬  ‫د‬ ‫بح‬ ‫تى‬ ‫ذ‬ ‫نا‬‫و‬ ‫ى‬
.. ‫بتا‬‫كر‬ ,‫عا‬ ,‫و‬ ‫طبيقا‬ ,‫مكت‬ ‫ط‬ ‫ر‬ ‫بناء‬
Windows, Mac OS, ‫ث‬ ‫تشغي‬ ‫ظمة‬   ‫مي‬ ‫ى‬ ‫عم‬ ‫ثو‬‫ا‬
.‫ل‬ ‫ى‬ ‫جة‬‫بر‬ ‫غا‬ ‫هر‬  ‫عتبر‬  ..Linux, Unix

‫ـــــو‬ ‫ر‬ :‫تا‬


‫لمطو‬ ‫نسبة‬‫ا‬ ‫ثو‬‫ا‬ ‫غة‬ ‫ميز‬ -2
.‫مها‬‫ع‬ ‫د‬‫ر‬ ‫م‬ ‫مر‬  ‫كثير‬ ‫نا‬  ‫ة‬‫ائ‬ ‫عبية‬ ‫ها‬ 
.‫غا‬  ‫ا‬‫ير‬  ‫ ًة‬‫قا‬ ً‫د‬ ‫ه‬ ‫مها‬‫ع‬  ‫سيطة‬ 
 ‫ظا‬  ‫ى‬ ‫عم‬ ‫ا‬‫بر‬ ‫إ‬ ‫ثو‬‫ا‬ ‫غة‬ ‫تخد‬‫ا‬ ً‫جا‬‫ا‬‫ر‬ ‫شأ‬  
.‫مها‬‫تع‬ ‫ع‬‫د‬ ‫ا‬   ‫ذ‬  ‫عا‬
‫د‬‫ر‬ ‫ن‬   ,‫عم‬ ‫و‬  ً‫با‬ ‫غا‬ ‫ثر‬  ‫عتبر‬ ,‫حا‬ ‫تنا‬  
.‫فر‬  ‫كثير‬  ‫ر‬‫و‬ ‫ثو‬‫ا‬ ‫غة‬ ‫عم‬ ‫و‬ ‫و‬
‫ا‬‫و‬‫مع‬  ‫مجا‬ ‫مهمتي‬ ‫ها‬‫ستخد‬ ‫ت‬ ‫غا‬  ‫د‬ 

‫ـــــو‬ ‫ر‬ :‫تا‬


Hello python ‫ترحي‬ ‫ة‬‫ا‬ ‫ظها‬ -2
:‫ية‬‫تا‬ ‫خطو‬‫ا‬ ‫قو‬
vscode, sublim text, notpad++ ‫ث‬ ‫نصو‬ ‫عا‬ ‫ا‬‫ر‬ ‫فت‬ -1
:‫ية‬‫تا‬ ‫يمة‬‫تع‬ ‫كت‬ -2
Print(‘HELLO PYTHON’)
[Link] ‫نو‬ ‫ح‬ ‫م‬ ‫حف‬ ‫قو‬ -3
:‫كت‬  ‫م‬ ‫سا‬ ‫ف‬  ‫د‬  )CMD( ‫ر‬ ‫نفذ‬ ‫فت‬ -4
Python [Link]
HELLO PYTHON :‫ة‬‫شا‬ ‫ى‬ ‫ية‬‫تا‬ ‫نتيجة‬ ‫ها‬ ‫ت‬ -5

‫ـــــو‬ ‫ر‬ :‫تا‬


)Variables( ‫متغير‬ -4
.‫ة‬‫يز‬‫ج‬ ‫غة‬  variable ‫عن‬ :‫تغير‬ 
.‫ا‬‫بر‬ ‫شغي‬ ‫ناء‬ ‫ا‬‫بيا‬ ‫تخز‬ ‫ر‬‫ذ‬  ‫ا‬‫جز‬ ‫ت‬ ‫ا‬
 ‫ها‬ّ‫عر‬ ‫ت‬ ‫متغير‬ ‫و‬ ‫د‬‫حد‬  ‫سؤ‬ ‫ير‬ ‫مبر‬ ,‫ثو‬‫ا‬  
.‫ج‬‫ا‬‫ر‬
‫ثو‬‫ا‬ ‫غة‬ ‫فسر‬
ّ ‫يقو‬ ,‫يمة‬  ‫ي‬ ‫ض‬  ‫تغير‬ ‫تعر‬ ‫قو‬ ‫ا‬‫ند‬ 
‫قائ‬ ‫شك‬ ‫ي‬ ‫ها‬‫ند‬ ‫ت‬ ‫قيمة‬ ‫ى‬ ً‫ناء‬ ‫متغير‬ ‫ذ‬ ‫و‬ ‫د‬‫تحد‬
.‫تشغي‬ 
.‫ف‬‫عر‬ ‫ناء‬ ‫متغير‬ ‫ى‬ ‫يمة‬ ‫نا‬ ‫ج‬ ‫ثو‬‫ا‬  

‫ـــــو‬ ‫ر‬ :‫تا‬


)Variables( ‫متغير‬ -4
‫متغير‬‫ا‬ ‫تصر‬  ‫ة‬‫ث‬

‫ـــــو‬ ‫ر‬ :‫تا‬


)Variables( ‫متغير‬ -4
‫متغير‬‫ا‬ ‫تصر‬  ‫ة‬‫ث‬

‫ـــــو‬ ‫ر‬ :‫تا‬


)Variables( ‫متغير‬ -4
‫ثو‬‫ا‬  ‫متغير‬ ‫و‬ ‫ة‬‫عر‬
type(). ‫ة‬‫د‬ ‫تخد‬ ‫مك‬ ‫تغير‬  ‫و‬ ‫ة‬‫عر‬

‫ـــــو‬ ‫ر‬ :‫تا‬


)Variables( ‫متغير‬ -4
‫ثو‬‫با‬  ‫متغير‬ ‫و‬
:‫د‬ •  ‫متغير‬ ‫و‬ ‫نقس‬ •
Lists • :‫ى‬ ‫ثو‬‫ا‬
Tuples • Numbers)INT, float( ‫ا‬ •
Sets • Strings ‫صو‬ •
Dictionaries • Booleans ‫نطقية‬ •

‫ـــــو‬ ‫ر‬ :‫تا‬


‫‪ -4‬متغير‪)Variables( ‬‬
‫‪‬ثا‪01 ‬‬
‫هنا قمنا بتعريف متغير إسم‪ ,x ‬قيمت‪ ‬بار‪  ‬دد صحي‪x = 3 # ‬‬
‫هنا قمنا بتعريف متغير إسم‪ ,y ‬قيمت‪ ‬بار‪  ‬دد ‪‬شر‪y = 1.5 # ‬‬

‫هنا طبعنا نو‪ ‬قيمة ‪‬متغير ‪print(type(x)) # x‬‬


‫هنا طبعنا نو‪ ‬قيمة ‪‬متغير ‪print(type(y)) # y‬‬

‫‪‬تا‪ :‬ر‪ ‬ـــــو‪‬‬


)Variables( ‫متغير‬ -4
02 ‫ثا‬
# ‫ نصية‬‫ى قي‬ ‫ تحتو‬‫ متغير‬‫هنا قمنا بتعريف ثل‬
name = 'Mhamad'
job = "Programmer"
message = '''This string that will span across multiple lines. No need to use
newline characters for the next lines.
The end of lines within this string is counted as a newline when printed.'''
# ‫ مرت‬‫و‬‫نصية بأس‬ ‫متغير‬ ‫هنا قمنا بعرض قي‬
print('Name: ', name)
print('Job: ', job)
print('Message: ', message)

‫ـــــو‬ ‫ر‬ :‫تا‬

You might also like