<jupyter_start><jupyter_text>if<jupyter_code>if condition:
    expression
    
#if condition is met, the expression is executed
#if the condition is not met, the expression is not executed
#in cases where the condition is not met, an "else" expression can be executed
if condition:
    expression
else:
    expression
#
if condition:
    expression
elif condition:
    expression
else:
    expression
    
#in this scenario a condition can be checked for
#example

z = 6

if z % 2 == 0:
    print("z is divisible by 2")  #This turns out to be true
elif z % 3 == 0:
    print("z is divisible by 3")  #Never reached because the first condition is met
else:
    print("z is never divisible by 2 nor by 3")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06967213114754098, 'fraction_numerical': 0.012295081967213115, 'mean_word_length': 3.610062893081761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '217379', 'license': 'CNRI-Python', 'n_tokens_mistral': 229, 'n_tokens_neox': 219, 'n_words': 103, 'path': 'Conditionals/1_If-Elif-Else.ipynb', 'repo_name': 'ElenaE873/Introduction-to-Python', 'size': '732'}