<jupyter_start><jupyter_text>If Statement<jupyter_code>a=50
b=75

if b>a:
  print("b is greater than a")<jupyter_output>b is greater than a<jupyter_text>Elif Statement<jupyter_code>a=50
b=75

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

if b>a:
  print("b is greater than a")
elif a>b:
  print("a is greater than b")
else:
  print("a is equal to b")<jupyter_output>a is equal to b<jupyter_text>Short Hand If Statement<jupyter_code>a=20
b=50

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

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 Logic Conditions<jupyter_code>x=10

if x>2 and x>5:
  print("Both conditions are True")<jupyter_output>Both conditions are True<jupyter_text>or logic condition<jupyter_code>x=19
if x>16 or x<12:
  print("True")
else:
  print("False")
if x>19:
  print("Above 19")
  if x>25:
    print("Above 25")
  else:
    print("below 25")
else:
  print("less than 19")<jupyter_output>less than 19<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:18
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:-69
Negative<jupyter_text>Example 3<jupyter_code>grade = float(input("Enter your grade:"))

if grade >=75:
  print("Passed")
elif grade > 74 and grade < 75:
  print("Remedial")
else:
  print("Failed")
grade = float(input("Enter your grade:"))

if grade >=75:
  print("Passed")
elif grade ==75:
  print("Remedial")
else:
  print("Failed")<jupyter_output>Enter your grade:75
Passed
{'fraction_non_alphanumeric': 0.1349601593625498, 'fraction_numerical': 0.03336653386454183, 'mean_word_length': 6.278985507246377, 'pattern_counts': {'":': 0, '<': 34, '<?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': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '320183', 'license': 'Apache-2.0', 'n_tokens_mistral': 843, 'n_tokens_neox': 788, 'n_words': 205, 'path': 'Control_Structure.ipynb', 'repo_name': 'GodfreyMamauag/CPEN-21A-CPE-1-2', 'size': '2008'}