freeCodeCamp/guide/arabic/python/parenthesis-for-boolean-ope.../index.md

16 lines
384 B
Markdown

---
title: Python Parenthesis for Boolean Operations
localeTitle: Python Parenthesis for Boolean Operations
---
كما هو الحال في الرياضيات ، يمكن استخدام قوسين لتجاوز ترتيب العمليات:
`>>> not True or True
True
>>> not (True or True)
False
>>> True or False and False
True
>>> (True or False) and False
False
`