# This script demonstrates operator precedence for comparison operators in Python
# Example 1: Greater than and equality
result = 5 > 3 == True
print("Result:", result) # Output: False
# Example 2: Parentheses to override precedence
result = 5 > (3 == True)
print("Result:", result) # Output: True
# This script demonstrates operator precedence for logical operators in Python
# Example 1: Logical AND and OR
result = True or False and False
print("Result:", result) # Output: True
# Example 2: Parentheses to override precedence
result = (True or False) and False
print("Result:", result) # Output: False