mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-21 15:03:21 -05:00
16 lines
384 B
Markdown
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
|
|
` |