Files
freeCodeCamp/guide/portuguese/python/parenthesis-for-boolean-operations/index.md
2018-10-16 21:32:40 +05:30

17 lines
367 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Python Parenthesis for Boolean Operations
localeTitle: Parêntese Python para Operações Booleanas
---
Assim como em matemática, parênteses podem ser usados para substituir a ordem das operações:
```
>>> not True or True
True
>>> not (True or True)
False
>>> True or False and False
True
>>> (True or False) and False
False
```