<jupyter_start><jupyter_text>**Boolean Operators**<jupyter_code>print(10>9)
print(10==9)
print(10!=9)
print(10<9)<jupyter_output><empty_output><jupyter_text>**bool() Fnction**<jupyter_code>print(bool("Maria"))
print(bool(19))
print(bool([]))
print(bool(0))
print(bool(1))
print(bool(None))
print(bool(False))<jupyter_output><empty_output><jupyter_text>**Function can return a Boolean**<jupyter_code>def myFunction():
  return False 

print(myFunction())
def myFunction():
  return True

if myFunction():
  print("Yes!")
else:
  print("No!")<jupyter_output><empty_output><jupyter_text>**Application 1**<jupyter_code>print(10>9)

a=6
b=7
print(a==b)
print(a!=a)
a=60
b=13
print(a>b)

if a<b:
  print("a is less than b")
else:
  print("a is greater than b")<jupyter_output><empty_output><jupyter_text>**Python Operators**<jupyter_code>print(10+3)
print(10-3)
print(10*3)
print(10%3)
print(10/3)<jupyter_output><empty_output><jupyter_text>**Bitwise Operators**<jupyter_code># a = 60, binary 0011 1100
# b = 13, binary 0000 1101

print(a&b)
print(a|b)
print(a^b)
print(a<<1)
print(a<<2)<jupyter_output><empty_output><jupyter_text>**Application 2**<jupyter_code>#Assignment Operators
x=2

x+=3 #same as x=x+3
print(x)

x-=3 #same as x=x-3
print(x)

x*=3 #same as x=x*3
print(x) 

x/=3 #same as x=x/3
print(x)

x%=3 #same as x=x%3
print(x)<jupyter_output><empty_output><jupyter_text>**Logical Operators**<jupyter_code>k = True
l = False
print(k and l)
print(k or l)
print(not(k or l))<jupyter_output><empty_output><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>v = 2
z = 1

if 1<2:
  print("1 is less than 2")<jupyter_output><empty_output><jupyter_text>**Elif Statement**<jupyter_code>if v<z:
  print("v is less than z")
elif v>z:
  print("v is greater than z")<jupyter_output><empty_output><jupyter_text>**Else Statement**<jupyter_code>number = int(input()) #to know if the number is positive or negative

if number>0:
  print("Positive")
elif number<0:
  print("Negative")
else:
  print("number is equal to zero")<jupyter_output><empty_output><jupyter_text>**Application 3**<jupyter_code>#Develop a Python program that will accept if the person is entitled to vote or not
age = int(input())

if age>=18:
  print("You are qualified to vote")
else:
  print("You are not qualified to vote")<jupyter_output><empty_output><jupyter_text>**Nested If...Else**<jupyter_code>u = int(input())
if u>10:
  print("u is above 10")
  if u>20:
    print("u is above 20")
    if u>30:
      print("u is above 30")
      if u>40:
        print("u is above 40")
      else:
        print("u is below 40")
        if u>50:
          print("u is above 50")
        else:
          print("u is below 50")<jupyter_output><empty_output><jupyter_text>**Loop Structure**<jupyter_code>week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
season = ["Rainy", "Sunny"]

for x in week:
  for y in season:
    print(y,x)<jupyter_output><empty_output><jupyter_text>**Break Statement**<jupyter_code>for x in week:
  print(x)
  if x == "Thursday":
    break<jupyter_output><empty_output><jupyter_text>**While Loop**<jupyter_code>i=1
while i<6:
  print(i)
  i+=1<jupyter_output><empty_output><jupyter_text>**Application 4**<jupyter_code>#Create a Python program that displays numbers from 1 to 4 using while loop statement

n=1
while n<5:
  print(n)
  n+=1<jupyter_output><empty_output><jupyter_text>**Application 5**<jupyter_code>#Create a Python program that displays 4 numbers using while loop and break statement

r=1
while r<=4:
  if r==4:
    print(r)
  r+=1<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16121179334595617, 'fraction_numerical': 0.03381119826886665, 'mean_word_length': 6.42570281124498, 'pattern_counts': {'":': 1, '<': 89, '<?xml version=': 0, '>': 88, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '19', 'dir': 'jupyter-structured-clean-dedup', 'id': '518082', 'license': 'Apache-2.0', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1488, 'n_words': 318, 'path': 'Operations_and_Expressions.ipynb', 'repo_name': 'Sunvick/OPP-58001', 'size': '3697'}