<jupyter_start><jupyter_text><jupyter_code><jupyter_output><empty_output><jupyter_text>Boolean Operators<jupyter_code>x=10
y=9

print(10>9)
print(x==y)
x<y<jupyter_output>True
False<jupyter_text>Bool Function<jupyter_code>print(bool("Desiree"))
print(bool(16))

print(bool(None))
print(bool())
print(bool([]))
print(bool({}))
print(bool(0))<jupyter_output>True
True
False
False
False
False
False<jupyter_text>Defining Function<jupyter_code>def myFunction():
  return False

print(myFunction())
def myFunction():
  return False

if myFunction():
  print("Yes")
else:
  print("No")<jupyter_output>No<jupyter_text>Application 1<jupyter_code>a=6
b=7
print(a==b)
print(a!=b)<jupyter_output>False
False<jupyter_text>Arithmetic Operations<jupyter_code>print(a+b)
print(a-b)
print(a*b)
print(a**b)<jupyter_output>13
-1
42
279936<jupyter_text>Bitwise Operators<jupyter_code>c=60
d=13

print(c&d)
print(c|d)
print(c<<1)
print(c<<2)<jupyter_output>12
61
120
240<jupyter_text>Assignment Operators<jupyter_code>c+=3 ##c+=3 same as c= c+3
c%=3
print(c)<jupyter_output>0<jupyter_text>Logical Operators<jupyter_code>c= True
d= True

not(c and d)<jupyter_output><empty_output><jupyter_text>Identity Operator<jupyter_code>c is d
c is not d<jupyter_output><empty_output><jupyter_text>Application 2<jupyter_code>e=10
f=5

# Implement the oprations +, //, and bit shift right>> twice

print(e+f)
print(e//f) 
print(e>>2)
print(f>>2)<jupyter_output>15
2
2
1
{'fraction_non_alphanumeric': 0.154006968641115, 'fraction_numerical': 0.03832752613240418, 'mean_word_length': 10.966666666666667, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 44, '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': '11', 'dir': 'jupyter-structured-clean-dedup', 'id': '537622', 'license': 'Apache-2.0', 'n_tokens_mistral': 678, 'n_tokens_neox': 650, 'n_words': 94, 'path': 'Operations_and_Expressions_in_Python.ipynb', 'repo_name': 'dess99/Elective1-3', 'size': '1435'}