# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

def test_exercise_99_1a(x) -> bool:
    prog = re.compile(r'ing') 
    return prog == x


def test_exercise_99_1b(x) -> bool:
    words = ['Spring','Cycling','Ringtone'] 
    return words == x


def test_exercise_99_2a(x) -> bool:
    prog = re.compile(r'ing') 
    words = ['Spring','Cycling','Ringtone'] 
    for w in words: 
        mt = prog.search(w) 
        # Span returns a tuple of start and end positions of the match 
        start_pos = mt.span()[0] # Starting position of the match 
        end_pos = mt.span()[1] # Ending position of the match 
    return w == x


def test_exercise_99_2b(x) -> bool:
    prog = re.compile(r'ing') 
    words = ['Spring','Cycling','Ringtone'] 
    for w in words: 
        mt = prog.search(w) 
        # Span returns a tuple of start and end positions of the match 
        start_pos = mt.span()[0] # Starting position of the match 
        end_pos = mt.span()[1] # Ending position of the match 
    return start_pos == x


def test_exercise_99_2c(x) -> bool:
    prog = re.compile(r'ing') 
    words = ['Spring','Cycling','Ringtone'] 
    for w in words: 
        mt = prog.search(w) 
        # Span returns a tuple of start and end positions of the match 
        start_pos = mt.span()[0] # Starting position of the match 
        end_pos = mt.span()[1] # Ending position of the match 
    return end_pos == x

StarcoderdataJupyterScriptsDedupFiltered