<jupyter_start><jupyter_text>Boolean Operators<jupyter_code>print(9>7)
print(9<8)
a = 8
b = 9

print(8>9)
print(9<8)
print(a>b)<jupyter_output>False
False
False<jupyter_text>bool() function<jupyter_code>print(bool("Jayr"))
print(bool(2))
print(bool(3))
print(bool(None))
print(bool(False))
print(bool(True))<jupyter_output>True
True
True
False
False
True<jupyter_text>Functions can return a Boolean<jupyter_code>def my_Function():
  return True

print(my_Function())
if my_Function():
  print("Yes")
else:
  print("No")<jupyter_output>Yes<jupyter_text>Application 1<jupyter_code>print(a==b)
print(a<b)<jupyter_output>False
True<jupyter_text>Python Operators<jupyter_code>print(10+5)
print(10-5)
print(10/3)
print(10*5)
print(10%5)
print(10//3)
print(10**2)<jupyter_output>15
5
3.3333333333333335
50
0
3
100<jupyter_text>Bitwise Operators<jupyter_code>c = 60 # binary 0011 1100
d = 13 # binary 0000 1101

c&d
print(a|b)
print(c^d)

print(d<<2)<jupyter_output>9
49
52<jupyter_text>Logical Operators<jupyter_code>k = True
l = False
k and l
k or l
not (k or l)<jupyter_output><empty_output><jupyter_text>Application 2 Python Assignment Operators<jupyter_code>x= 10

print(10+3)
print(10-3)
print(10/3)
print(10*3)
print(10%3)<jupyter_output>13
7
3.3333333333333335
30
1<jupyter_text>Identity Operators<jupyter_code>k is l
k is not l<jupyter_output><empty_output><jupyter_text>Control Structure If statement<jupyter_code>if print(b<c):
  print("b is greater than c")<jupyter_output>True<jupyter_text>Short Hand if statement<jupyter_code>if print(c==d): print("c is equal to d")<jupyter_output>False<jupyter_text>Short Hand If...else satement<jupyter_code>c = 8
d = 7
print("c is greater than d")if (a<b) else ("d is greater than c")<jupyter_output>c is greater than d<jupyter_text>And<jupyter_code>if c and d:
  print("Yes")<jupyter_output>Yes<jupyter_text>Or<jupyter_code>if c<d or d==d:
  print("Both condition is True")<jupyter_output>Both condition is True<jupyter_text>Nested If<jupyter_code>x = 41
if x>11:
  print("x is above 11")
  if x>30:
    print("and also above 30")
  if x>40:
    print("and also above 40")
    if x>50:
      print("and also above 50")
    else:
      print("but not above 50")<jupyter_output>x is above 11
and also above 30
and also above 40
but not above 50<jupyter_text>Loop Statement For Loop<jupyter_code>week = ["Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"]

for x in week:
  print(x)<jupyter_output>Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday<jupyter_text>The break statement<jupyter_code>#to display Sunday to Thursday using For loop
for x in week:
  print(x)
  if x=="Thursday":
    break
#to display Sunday to Thursday using break loop
for x in week:
  if x=="Thursday":
    break
print(x)<jupyter_output>Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday<jupyter_text>While statement<jupyter_code>i = 3
while i<6:
  print(i)
  i+=3<jupyter_output><empty_output><jupyter_text>Application 3 - Create a python program that display 3<jupyter_code>i = 3
while i<5:
  if i==4:
    break
  i+=3
print(i)<jupyter_output>6
{'fraction_non_alphanumeric': 0.12604771115409413, 'fraction_numerical': 0.05415860735009671, 'mean_word_length': 6.915816326530612, 'pattern_counts': {'":': 2, '<': 71, '<?xml version=': 0, '>': 68, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '19', 'dir': 'jupyter-structured-clean-dedup', 'id': '466009', 'license': 'Apache-2.0', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1263, 'n_words': 285, 'path': 'Operations_and_Expression.ipynb', 'repo_name': 'Jaryyyy/OOP-58002', 'size': '3102'}