<jupyter_start><jupyter_text>If Statement<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 Statements<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 Statement<jupyter_code>a = 12
b = 120

if b>a:
  print("b is greater than a")
elif a==b:
  print("a is equal to b")
else:
  print("b is less than a")<jupyter_output>b is greater than a<jupyter_text>Short Hand If Statement<jupyter_code>if a>b: print("a is greater than b")<jupyter_output><empty_output><jupyter_text>Short Hand If...Else Statement<jupyter_code>print("a is greater than b") if a>b else print("b is greater than a")<jupyter_output>b is greater than a<jupyter_text>And conditions<jupyter_code>a = 15
b = 35

if b>a and a<b:
  print("Both conditions are true")
elif b<a and a>b:
  print("a is larger than b")
else:
  print("none of the above")<jupyter_output>Both conditions are true<jupyter_text>Or condition<jupyter_code>a = 35
b = 20

if b>a or a==b:
  print("True")
else:
  print("False")<jupyter_output>False<jupyter_text>Nested If<jupyter_code>x = 41
if x > 10:
  print("Above 10")
  if x > 20:
    print("Above 20")
    if x > 30:
      print("Above 30")
    else:
        print("Not above 30")
  else:
    print("Not Above 20")<jupyter_output>Above 10
Above 20
Above 30<jupyter_text>Application of If.. Else<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 the number: "))

if number == 0:
  print("Zero")
elif number > 0:
  print("Positive")
else:
  print("Negative")
#Example 3

grade = int(input("Enter grade: "))

if grade >= 75:
  print("Passed")
elif grade == 74:
  print("Remedial")
else:
  print("Failed")<jupyter_output>Enter grade: 75
Passed
{'fraction_non_alphanumeric': 0.1360369609856263, 'fraction_numerical': 0.030287474332648872, 'mean_word_length': 4.835329341317365, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '155478', 'license': 'Apache-2.0', 'n_tokens_mistral': 835, 'n_tokens_neox': 763, 'n_words': 220, 'path': 'Control_Structure.ipynb', 'repo_name': 'alexis-anciado/CPEN-21A-CPE-1-1', 'size': '1948'}