Ders Notu
Completion requirements
Mantıksal Operatörler
Mantıksal operatörler, koşullu ifadeleri birleştirmek için kullanılır.
| Operatör | Tanım | Örnek |
|---|---|---|
| and | Her iki ifade de doğruysa True döndürür | x < 5 and x < 10 |
| or | İfadelerden biri doğruysa True döndürür | x < 5 or x < 4 |
| not | Sonucu tersine çevirir, sonuç doğruysa False döndürür | not(x < 5 and x < 10) |