In this example we will show how to run a condition in an if statement and get the Boolean answer in Python.
Source Code
x = 10
y = 20
if x > y:
print("x is greater than y.")
else:
print("x is not greater than y.")
Output:
x is not greater than y.