<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 statement<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:
  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<jupyter_code>print("a is greater than b") if a>b else print("b is greater than a")<jupyter_output>a is greater than b<jupyter_text>And Condition<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("non 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("but not above 10")
  else:
    print("Not Above 20")
else:
    print("Not Above 30")
#Example
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 to check whether 0, negative or positive number
number=int(input("Enter the number"))
if number==0:
  print("Zero")
elif number>0:
  print("Positive")
else:
  print("Negative")
#Example 3 if the grades are pass
grade=int(input("Enter the number"))
if grade>=75:
  print("Passed")
if grade==74:
  print("Remedial")
elif grade<74:
  print("Failed")<jupyter_output>Enter the number73
Failed
{'fraction_non_alphanumeric': 0.1353211009174312, 'fraction_numerical': 0.030389908256880736, 'mean_word_length': 5.462962962962963, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 35, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '135834', 'license': 'Apache-2.0', 'n_tokens_mistral': 714, 'n_tokens_neox': 671, 'n_words': 193, 'path': 'Control_Structure.ipynb', 'repo_name': 'allenpatrickargente/CPEN-21A-CPE-1-1', 'size': '1744'}