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

17 lines
367 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

---
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
```