<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= 12
b= 100
if b>a:
  print("b is less than a")
elif b>a:
  print("b is greater than a")<jupyter_output>b is less than a<jupyter_text>Else Statement<jupyter_code>a= 12
b= 12
if b>a:
  print("b is less than a")
elif b>a:
  print("b is greater than a")
else:
  print ("a is equal to b")<jupyter_output>a is equal to b<jupyter_text>Short Hand If.... Else<jupyter_code>a= 420
b= 330
print("A")if a > b else print("B")<jupyter_output>A<jupyter_text>And Condition<jupyter_code>a= 200
b= 33
c= 500
if a > b and a < c:
  print("The conditions need to be True")<jupyter_output>The condition need to be True<jupyter_text>Or Condition<jupyter_code>a= 200
b= 33
c= 500
if a > b or a < b:
   print("Atleast one of the conditions is True")<jupyter_output>Atleast one of the conditions is True<jupyter_text>Nested If<jupyter_code>a= 41
if a > 10:
  print("Above 10,")
if a > 20:
  print("and also above 20!")
else:
  print("but not above 20.")<jupyter_output>Above 10,
and also above 20!<jupyter_text>Nested If.... Else<jupyter_code>a= 4

if a > 10:
  print("Above 10,")
  if a > 20:
    print("Above 20")
  else:
   print("but not above 20.")
else:
  print("below 10")<jupyter_output>below 10<jupyter_text>Example 1<jupyter_code># The qualifying age to vote
age= 18
if age>=18:
  print("You are qualified to vote")
else:
  print("You are not qualified")<jupyter_output>You are qualified to vote<jupyter_text>Example 2<jupyter_code>number= int(input("Enter a number"))
if number > 0:
  print("You entered a positive number")
elif number ==0:
  print("You entered zero 0")
else:
  print("You entered a negative number")<jupyter_output>Enter a number -4
You entered a negative number<jupyter_text>Example 3<jupyter_code># Determine if grades are Passed, Remedial or Failed

number= int(input("Grade is"))
if number >= 75:
  print("Passed")
if number == 74:
  print("Remedial")
if number < 74:
  print("Failed")<jupyter_output>Grade is 75
Passed
{'fraction_non_alphanumeric': 0.12553292278540976, 'fraction_numerical': 0.04073898626243486, 'mean_word_length': 5.285714285714286, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 49, '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': '11', 'dir': 'jupyter-structured-clean-dedup', 'id': '477525', 'license': 'Apache-2.0', 'n_tokens_mistral': 920, 'n_tokens_neox': 820, 'n_words': 256, 'path': 'Control Structure.ipynb', 'repo_name': 'Charleeees/CPEN-21A-ECE-2-2', 'size': '2111'}