# Examples of complex boolean expressions and simplifying them
p = true
q = false
if ((p and q)
or
(p and not q)):
print("This expression is true")
else:
print("This expression is false")
# Above expression simplies (using truth tables to):
if (p):
print("This expression is true")