<jupyter_start><jupyter_text>If Statement<jupyter_code>a=12
b=100
if a<b:
  print("a is less than b")<jupyter_output><empty_output><jupyter_text>Elif Statement<jupyter_code>a=30 
b=15
if a<b:
  print("a is less than b")
elif a>b:
  print("a is greater than b")<jupyter_output>a is greater than b<jupyter_text>Else Statement<jupyter_code>a=30 
b=15
if a<b:
  print("a is less than b")
elif a>b:
  print("a is greater than b")
else:
  print("a is equal to b")
a=30 
b=30
if a<b:
  print("a is less than b")
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=75
b=32
if a>b:print("a is greater than b")<jupyter_output>a is greater than b<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>a is greater than b<jupyter_text>And Logic Condition<jupyter_code>a=200
b=33
c=500
if a>b and c>a:
  print("both conditions are true")
else: 
  print("Either of the two conditions is true")<jupyter_output>both conditions are true<jupyter_text>Or Logic Condition<jupyter_code>if a<b or c>a: 
  print("true")
else:
  print("false")<jupyter_output>true<jupyter_text>Nested If<jupyter_code>x=41
if x>10:
  print("above 10")
  if x>20:
    print("above 20")
    if x>30:
      print("and above 30")
    else:
      print("not above 30")
  else:
    print("not above 20")
else:
  print("below 10")<jupyter_output>above 10
above 20
and above 30<jupyter_text>Example 1<jupyter_code>age=int(input("Enter you age:"))
if age>=18: 
  print("qualified to vote")
else:
  print("not qualified to vote")<jupyter_output>Enter you age:34
qualified to vote<jupyter_text>Example 2<jupyter_code>#Write a program that determines if the input number is POSITIVE, NEGATIVE, or Zero.

number= float(input("Enter a number:"))
if number>=0: 
  print("number is positive")
elif number==0:
  print("number is zero")
else:
  print("number is negative")<jupyter_output>Enter a number:0.0000000001
number is positive<jupyter_text>Example 3<jupyter_code>#Write a python program that determines if the grades are:
#grade>=75 "Passed"
#grade==74 "remedial"
#grade<74 "failed"

grade= float(input("Enter your grade:"))
if grade>=75:
  print("you passed")
elif grade>74 and grade<75:
  print("Remedial")
else:
  print("you failed")<jupyter_output>Enter your grade:74.5
Remedial
{'fraction_non_alphanumeric': 0.12783505154639174, 'fraction_numerical': 0.03711340206185567, 'mean_word_length': 5.776536312849162, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '304074', 'license': 'Apache-2.0', 'n_tokens_mistral': 1013, 'n_tokens_neox': 936, 'n_words': 265, 'path': 'Control_Structure.ipynb', 'repo_name': 'JUNTILLA-QUEENETHERESEJULIA/CPEN-21A-ECE-2-3', 'size': '2425'}