Podcast
Questions and Answers
ما هي اسم الكلية المذكورة في النص؟
ما هي اسم الكلية المذكورة في النص؟
- كلية الهندسة
- كلية الذكاء الاصطناعي وعلم البيانات
- كلية الهندسة وتقنيات المعلومات (correct)
- كلية تكنولوجيا المعلومات
ما هو اسم القسم المذكور في النص؟
ما هو اسم القسم المذكور في النص؟
- قسم هندسة الحاسوب
- قسم علم البيانات
- قسم الذكاء الاصطناعي
- قسم الذكاء الاصطناعي وعلم البيانات (correct)
ما هو مستوى الدراسة المذكور في النص؟
ما هو مستوى الدراسة المذكور في النص؟
- مستوى ثالث
- مستوى رابع
- مستوى ثاني
- مستوى اول (correct)
من هو أستاذ المحاضرة؟
من هو أستاذ المحاضرة؟
ما هو العام الدراسي المذكور في النص؟
ما هو العام الدراسي المذكور في النص؟
ما هو نوع البيانات الناتج من int(2.2)
؟
ما هو نوع البيانات الناتج من int(2.2)
؟
ما هو نوع البيانات الناتج من float(34)
؟
ما هو نوع البيانات الناتج من float(34)
؟
ما هي القيمة التي تُطبعها print(a, b, c)
؟
ما هي القيمة التي تُطبعها print(a, b, c)
؟
ما هو نوع البيانات الذي تم تعيينه للمتغير c
في الكود المقدم؟
ما هو نوع البيانات الذي تم تعيينه للمتغير c
في الكود المقدم؟
ما هي الطريقة المستخدمة لتحويل البيانات بين أنواع مختلفة في Python؟
ما هي الطريقة المستخدمة لتحويل البيانات بين أنواع مختلفة في Python؟
ما هو نوع بيانات المتغير f1
؟
ما هو نوع بيانات المتغير f1
؟
ماذا سيطبع الكود print(type(c))
؟
ماذا سيطبع الكود print(type(c))
؟
ما هو العنصر الأخير في القائمة s
؟
ما هو العنصر الأخير في القائمة s
؟
ما هي أنواع المُشغّلات (Operators) التي تمّ ذكرها في النص؟
ما هي أنواع المُشغّلات (Operators) التي تمّ ذكرها في النص؟
ما هو نوع المُشغّل "=" في لغة البرمجة؟
ما هو نوع المُشغّل "=" في لغة البرمجة؟
ما هو نوع البيانات المستخدم لتخزين قيم "صحيح" أو "خطأ"؟
ما هو نوع البيانات المستخدم لتخزين قيم "صحيح" أو "خطأ"؟
ما هو الغرض من "صُنع القرار" في برمجة الحاسوب؟
ما هو الغرض من "صُنع القرار" في برمجة الحاسوب؟
Flashcards
tuple
tuple
تجميع غير قابل للتغيير من العناصر.
list
list
تجميع قابل للتغيير من العناصر.
set
set
تجميع غير مرتّب من العناصر الفريدة.
int
int
Signup and view all the flashcards
float
float
Signup and view all the flashcards
جامعة الجند
جامعة الجند
Signup and view all the flashcards
كلية الهندسة وتقنيات المعلومات
كلية الهندسة وتقنيات المعلومات
Signup and view all the flashcards
قسم الذكاء الاصطناعي
قسم الذكاء الاصطناعي
Signup and view all the flashcards
علم البيانات
علم البيانات
Signup and view all the flashcards
المحاضرة 3
المحاضرة 3
Signup and view all the flashcards
تحويل البيانات
تحويل البيانات
Signup and view all the flashcards
str()
str()
Signup and view all the flashcards
طباعة البيانات
طباعة البيانات
Signup and view all the flashcards
تحويل نوع البيانات
تحويل نوع البيانات
Signup and view all the flashcards
المشغلين الحسابيين
المشغلين الحسابيين
Signup and view all the flashcards
المشغلين المقارنين
المشغلين المقارنين
Signup and view all the flashcards
المشغلين المنطقيين
المشغلين المنطقيين
Signup and view all the flashcards
هيكل القرار
هيكل القرار
Signup and view all the flashcards
نوع البيانات
نوع البيانات
Signup and view all the flashcards
print(type(c))
print(type(c))
Signup and view all the flashcards
c = [1, 2, 3]
c = [1, 2, 3]
Signup and view all the flashcards
استدعاء النوع
استدعاء النوع
Signup and view all the flashcards
Study Notes
Course Information
- Course Title: Programming 2
- Course Code: Programming 2
- Department: Computer Engineering and Information Technology
- Specialization: Artificial Intelligence and Data Science
- Year: 2024-2035
- Instructor: Dr. Bilal Al-Samaee
Data Type Conversion
- Python allows converting data types
- The type name is used as a function for conversion
- Example:
int(2.2)
,float(1)
,str(2.2)
,tuple(s)
,list(s)
,set(s)
Types of Operators
- Python supports various operator types
- Arithmetic Operators (+, -, *, /, %, **, //)
- Comparison/Relational Operators (==, !=, >, <, >=, <=)
- Assignment Operators (=, +=, -=, *=, /=, %=, **=, //=)
- Logical Operators (and, or, not)
- Bitwise Operators (&, |, ^, ~)
- Python Identity Operators (is, is not)
- Membership Operators (in, not in)
- Boolean Operators (True, False)
Arithmetic Operators
- Addition (+): 10 + 20 = 30
- Subtraction (-): 20 - 10 = 10
- Multiplication (*): 10 * 20 = 200
- Division (/): 20 / 10 = 2
- Modulus (%): 22 % 10 = 2
- Exponent (**): 4 ** 2 = 16
- Floor Division (//): 9 // 2 = 4
Comparison Operators
- Equality (==): (3 == 4) is not true
- Inequality (!=): (3 != 4) is true
- Greater than (>): (3 > 4) is not true
- Less than (<): (3 < 4) is true
- Greater than or equal (>=): (3 >= 4) is not true
- Less than or equal (<=): (3 <= 4) is true
Conditional Statements (Decision Making)
- if statement: Executes code block if a condition is true.
- if-else statement: Executes one block if true, another if false.
- Nested if...else statements: if statements inside other if statements.
- if-elif statement: A multi-condition check using
elif
for cases after the initialif
.
Loop Statements
- for loop: Repeats code a set number of times, or over an iterable object (list, tuple, etc.).
- while loop: Repeats code as long as a condition is true.
- Loop control statements (break, continue, pass): Control the flow of loops.
Useful Operators
- range(): Generates sequences of numbers, with options for start, stop, and step values.
Homework Assignments
- Various programming tasks with different requirements to utilize the learned concepts in this course. Include specific examples such as using
range
, list comprehensions, conditional statements, and loops. These will require writing Python code, and identifying the output values. Questions involving manipulating lists, strings, and mathematical calculations.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.