<jupyter_start><jupyter_text><jupyter_code>print(10>9)
print(10<9)
print(10==9)
a=10
b=9
print(a>b)
print(a<b)
print(a==b)<jupyter_output>True
False
False<jupyter_text>**BOOL FUNCTION**<jupyter_code>print(bool(5))
print(bool("Maria"))

print(bool(0))
print(bool(1))

print(bool(None))
print(bool([]))<jupyter_output>True
True
False
True
False
False<jupyter_text>**FUNCTIONS CAN RETURN A BOOLEAN**<jupyter_code>def myFunction():
  return False

print(myFunction())

if myFunction():
  print("YES!")
else:
  print("NO!")<jupyter_output>NO!<jupyter_text>**APPLICATION 1**<jupyter_code>print(10>9)

a=6
b=7
print(a==b)
print(a!=a)<jupyter_output>True
False
False<jupyter_text>**PYTHON OPERATORS**<jupyter_code>print(10+9)
print(10-9)
print(10*2)
print(10/2)
print(10**2)<jupyter_output>19
1
20
5.0
100<jupyter_text>**PYTHON BITWISE OPERATORS**<jupyter_code>a = 60
a = 13

print(a&b)
print(a|b)<jupyter_output>5
15<jupyter_text>**PYTHON ASSIGNMENT OPERATORS**<jupyter_code>a+=3 #The same as a = a + 3

print(a)<jupyter_output>19<jupyter_text>**LOGICAL OPEATORS**<jupyter_code>a = True
b = False

print(a and b)
print(not(a or b))<jupyter_output>False
False<jupyter_text>**IDENTITY OPERATORS**<jupyter_code>a is b
a is not b<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup