SoFunction
Updated on 2024-11-15

A brief look at with or without operations in python

It's really important to be planted!!!! (Though it seems like I knew that before.)

print(True or False and False)
print((True or False) and False)
# True
# False

Here's a prioritization of python operators

not > and >or

not > and >or

not > and >or

Except where brackets apply

The value returned by an operation is the value that determines the result of the expression operation.

For example, True or False , False or True returns True, True and False returns False.

This is the whole content of this article.