<garvit244>1065_1.py
def indexPairs( text, words):
    if not words:
        return []
    result = []
    for word in words:
        starting = [index for index in range(len(text)) if text.startswith(word, index)]
        for start in starting:
            result.append([start, start+len(word)-1])
    result.sort()
    return result
def sample_funcname ( var_0 , var_1 ) :
    if not var_1 :
        return [ ]
    var_2 = [ ]
    for var_3 in var_1 :
        var_8 = [ var_4 for var_4 in range ( len ( var_0 ) ) if var_0.startswith ( var_3 , var_4 ) ]
        for var_9 in var_8 :
            var_2.append ( [ var_9 , var_9 + len ( var_3 ) - 1 ] )
    var_2.sort ( )
    return var_2
