<jupyter_start><jupyter_text>Bolean Operatons<jupyter_code>#Boleans represent one of two values: True or False
print(10>9)
print(10==9)
print(9>10)
a=10
b=9
print(a>b)
print(a==a)
print(b>a)
b>a
print(bool("hello"))
print(bool(15))
print(bool(True))
print(bool(False))
print(bool(None))
print(bool(0))
print(bool([])) #allows you to evaluate and gives False in return
def myFunction():return True


if myFunction():
 print("Yes")
else:
 print("No")
def myFunction():return False


if myFunction():
 print("Yes")
else:
 print("No")<jupyter_output>No<jupyter_text>You Try!<jupyter_code>a=6
b=7
print(a==b)
print(a!=a)
print(10+5)
print(10-5)
print(10*5)
print(10/5) #division - Quotient
print(10%5) #modulo division
print(10%3) #modulo division
print(10//3) # Floor division
print(10**2) #concatenation
a=60 #0011 1100
b=13 #0000 1101

print(a & b) #AND
print(a|b) #OR
print(a^b) #XOR
print(a<<2)
print(a>>2)
x=6
x+=3 #same as x=x+3
print(x)

x%=3 #x=6% 3 , remainder 0
print(x)
a=True
b= False
a and b
a or b
a=True
b= False
print(a and b)
print(a or b)
print(not(a and b))
print(not(a or b)) #negation
a is b
a is not b
print(a is b)
print(a is not b)<jupyter_output>False
True
{'fraction_non_alphanumeric': 0.1750212404418012, 'fraction_numerical': 0.059473237043330504, 'mean_word_length': 6.455696202531645, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 14, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '59158', 'license': 'Apache-2.0', 'n_tokens_mistral': 559, 'n_tokens_neox': 522, 'n_words': 139, 'path': 'Operations_and_Expressions.ipynb', 'repo_name': 'RoyMillamis/CPEN-21A-CPE-1-2', 'size': '1177'}