<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=100

if b>a:
  print("b is greater than a")
elif a>b:
  print("a is greater than b")<jupyter_output>a is greater than b<jupyter_text>Else Statement<jupyter_code>a = 100
b=100

if b>a:
  print("b is greater than a")
elif a>b:
  print("a is greater than b")
else:
  print("a and b are equal")<jupyter_output>a and b are equal<jupyter_text>Short Hand If Statement<jupyter_code>a=45
b=30

if a>b: print("a is greater than b")<jupyter_output>a is greater than b<jupyter_text>Short Hand Else Statement<jupyter_code>a=30
b=45

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 Logic Condition<jupyter_code>x=7
if x>5 and x>6:
 print("Both conditions are True")<jupyter_output>Both conditions are True<jupyter_text>Or Logic Condition<jupyter_code>x=21
if x>18 or x<15:
 print("True")
else:
 print("False")
if x>10:
  print("Above 10")
  if x>20:
    print("Above 20")
  else:
    print("Below 20")
else:
  print("Less than 10")<jupyter_output>Above 10
Above 20<jupyter_text>Example 1<jupyter_code>age = int(input("Enter your age:"))

if age>=18:
  print("You are qualified to vote")
else:
  print("You are not qualified to vote")<jupyter_output>Enter your age:19
You are qualified to vote<jupyter_text>Example 2<jupyter_code>number = float(input("Enter the number:"))
if number == 0:
  print("Zero")
elif number>0:
  print("Positive")
else:
  print("Negative")<jupyter_output>Enter the number:-86
Negative<jupyter_text>Example 3<jupyter_code>grade = float(input("Enter your grade:"))

if grade>=75:
  print("Passed")
elif grade ==74:
  print("Remedial")
else:
  print("Failed")<jupyter_output>Enter your grade:73
Failed<jupyter_text>And Logic Condition<jupyter_code>grade=94
if grade>92 and grade>90:
 print("Both conditions are True")<jupyter_output>Both conditions are True<jupyter_text>Or Logic Condition<jupyter_code>grade=85
if grade>84 or grade<83:
 print("True")
else:
 print("False")
grade = 96
if grade>85:
  print("Above 85")
  if grade>90:
    print("Above 90")
  else:
    print("Below 90")
else:
  print("Less than 85")<jupyter_output>Above 85
Above 90
{'fraction_non_alphanumeric': 0.12828239345673698, 'fraction_numerical': 0.04175634954799828, 'mean_word_length': 6.2625, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 57, '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': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '188250', 'license': 'Apache-2.0', 'n_tokens_mistral': 986, 'n_tokens_neox': 895, 'n_words': 238, 'path': 'Control_Structure.ipynb', 'repo_name': 'Gimarose/CPEN21A-BSCPE-1-2', 'size': '2323'}