find a number is between which range in a list of list
<p>Need some python help, I have a list: </p>

<pre><code>[[sql1, 1, 10], [sql2, 12, 16]...]
</code></pre>

<p>I want to know if 15 is in the sql2, please let me know in python the easy way. </p>

<p>I have tried in the loop. </p>

<p>I have hard coded the data to meet the question requirements but the
answer can be modified as required</p>

<pre><code>my_list = [['sql1', 1, 10], ['sql2', 12, 16]]

for i in range(len(my_list)):
    print(my_list[i])
    if my_list[i][0] == 'sql1':
        if '15' in my_list[i][0]:
            print("found")
        else:
            print("not found")
</code></pre>

python