<jupyter_start><jupyter_text>Boolean OperatorsBoolean represent one or two values: True or False<jupyter_code>print(10>9)
print(10<9)
print(10==9)
print(10!=9)
print(bool(True))
print(bool(False))
print(bool(1))
print(bool(0))
print(bool([]))
print(bool(None))
def myFunction(): return False

print(myFunction())
##Boolean answer of a function
def myFunction(): return False

if myFunction():
  print("Yes!")
else:
  print("No!")
a=6
b=7
print(a==b)
print(a!=b)<jupyter_output>False
True<jupyter_text>Python Operators<jupyter_code>print(10+5)
print(10-5)
print(10*5)
print(10/5)
print(10//5)   #floordivision
print(10/3)    #quotient
print(10//3)   #floordivision
print(10%3)    #modulo
print(10**2)   #concatenation
a = 60  #0011 1100 , 0111 1000
b = 13
print(a&b)
print(a|b)
print(a<<1)
print(a<<2)
print(a>>1) #0011 1100 , 0001 1110
a+=2 #same as a = a + 2, a = 60 +2, a=62
print(a)<jupyter_output>62<jupyter_text>Logical Operators<jupyter_code>a=60
b=13

print((a>b)and(a<b))
print((a>b)or(a<b))
print(not(a>b))<jupyter_output>False
True
False<jupyter_text>Identity Operators<jupyter_code>a=60
b=13

print(a is b)
print (a is not b)<jupyter_output>False
True
{'fraction_non_alphanumeric': 0.1746987951807229, 'fraction_numerical': 0.08519793459552495, 'mean_word_length': 7.427536231884058, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '518884', 'license': 'Apache-2.0', 'n_tokens_mistral': 575, 'n_tokens_neox': 515, 'n_words': 103, 'path': 'Expression_and_Operations.ipynb', 'repo_name': 'BenNicart/CPEN-21A-CPE-1-1', 'size': '1162'}