# Returns true
print(10 > 9)
# Returns false
print(10 == 9)
# Returns false
print (10 < 9)
a = 100
b = 9
# Prints "a is greater than b"
if a > b:
print ("a is greater than b")
else:
print ("a is not greater than b")
print ("out of the if/else")
print("---")
# Most values are true
# These all display "True"
print(bool("abc"))
print(bool(True))
print(bool(123))
print(bool(["apple", "cherry", "banana"]))
print("---")
# But some values are false
print(bool(False))
print(bool(None))
print(bool(0))
print(bool(""))
print(bool(()))
print(bool([]))
print(bool({}))
print("---")
# Functions can return True or False
def myFunction():
# Is John awesome?
return True
print(myFunction())
if myFunction():
print ("John is awesome")
else:
print ("You are mistaken")
print("---")