العمليات المنطقية and or not في بايثون و Logical expressions - برمجة بايثون
برمجة بايثون | Python programming برمجة | Programming
جامعة الاسكندرية
- 2025-04-20
العمليات المنطقية and or not في بايثون و Logical expressions
في الفيديو ده هنتعرف على واحدة من أهم أدوات اتخاذ القرار في البرمجة وهي العمليات المنطقية في بايثون: and, or, و not، واللي بنستخدمها علشان نكتب شروط مركّبة ومعقدة.
هنشرح الفرق بين كل عملية منطقية:
-
and: بتتحقق لما الشرطين يكونوا صح.
-
or: بتتحقق لو شرط واحد على الأقل صح.
-
not: بتعكس نتيجة الشرط.
كمان هنتدرب على كتابة التعبيرات المنطقية (Logical Expressions) باستخدام أكتر من شرط مع بعض
هنوضح كمان ترتيب تنفيذ الشروط، وإزاي بايثون بتقيّم التعبيرات المنطقية خطوة بخطوة، وكمان هنعرف شوية خدع مفيدة بتسهل كتابة الشروط.
الفيديو ده هيساعدك تبني منطق قوي في الكود بتاعك، ويفتح لك باب أكبر لكتابة برامج تفاعلية ومرنة أكتر.
---------------------------
Logical Operators (and, or, not) and Logical Expressions in Python In this video, we’ll explore one of the most important decision-making tools in programming: logical operators in Python (and, or, not). We use these operators to write complex and compound conditions. We’ll explain the difference between each operator: and: Evaluates to True only if both conditions are true. or: Evaluates to True if at least one condition is true. not: Inverts the result of a condition (True becomes False, and vice versa). We’ll also practice writing logical expressions using multiple conditions and understand operator precedence—how Python evaluates logical expressions step by step. Plus, we’ll share some useful tricks to simplify conditional statements. This video will help you build stronger logic in your code and open doors to writing more interactive and flexible programs
هل كان الشرح مفيد؟

- 5/5
شروحات مشابهة
- برمجة بايثون | Python programming
- برمجة | Programming
- برمجة | Programming
- برمجة سي شارب | c# programming
- برمجة جافا | Java programming
- برمجة بي اتش بي | Php programming
- برمجة html | Html programming
- برمجة سي اس اس | Css programming
- برمجة روبي | Ruby programming