<jupyter_start><jupyter_text>If Condition<jupyter_code>a = 12
b = 100

if b > a:
  print("b is greater than a")<jupyter_output>b is greater than a<jupyter_text>Elif Condition<jupyter_code>a = 12
b = 12

if b > a:
  print("b is greater than a")
elif a== b:
    print("a is equal to b")<jupyter_output>a is equal to b<jupyter_text>Else Condition<jupyter_code>a = 120
b = 12

if b > a:
  print("b is greater than a")
elif a== b:
    print("a is equal to b")
else:                                                   #no more operation, automatic
  print("b is less than a")<jupyter_output>b is less than a<jupyter_text>Short Hand If Statement<jupyter_code>if a>b: print("a is greater than b")<jupyter_output>a is greater than b<jupyter_text>Short Hand If Else Statement<jupyter_code>print("a is greater than b") if a>b else print("b is less than a " ) #no more colon<jupyter_output>a is greater than b<jupyter_text>And Condition<jupyter_code>a = 35
b = 15

if  b > a  and a < b:
  print("Both conditions are True")
elif b<a and a > b:
  print("Both conditions are False")
else:
  print("none of the above")<jupyter_output>Both conditions are False<jupyter_text>Or Condition<jupyter_code>a = 35
b = 20

if  b>a  or a==b:
  print("True")
elif  b==a or a>b:
  print("False")
else:
  print("Nothing to compare")<jupyter_output>False<jupyter_text>Nested If Statements<jupyter_code>x = 30

if x>10:
  print("Above 10")
  if x>20:
    print("Above 20")
  else:
    print("Not Above 20")<jupyter_output>Above 10
Above 20<jupyter_text>Application of If..Else Statement<jupyter_code>#Example 1

age =int(input("Enter your age : "))

if age>=18:
  print("You are qualified to vote!")
else:
  print("You are not qualified to vote!")
#Example 2

number = int(input("Enter a number: "))

if number>0:
  print("The number is positive")
elif number <0:
  print("The number is negative")
else:
  print("Thenumber is zero")
#Example 3

grade = float(input("Enter  your grade :"))
if grade >= 75.00:
        print("Passed")
elif grade >= 74.00:
        print("Remedial")
else:
        print("Failed")<jupyter_output>Enter  your grade :76
Passed
{'fraction_non_alphanumeric': 0.12311320754716981, 'fraction_numerical': 0.025943396226415096, 'mean_word_length': 4.074162679425838, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '460912', 'license': 'Apache-2.0', 'n_tokens_mistral': 844, 'n_tokens_neox': 786, 'n_words': 243, 'path': 'Control_Stucture.ipynb', 'repo_name': 'Dominic-Marasigan/CPEN-21A-CPE-1-1', 'size': '2120'}