How check a string value inside a list on a if statement?
<p>I have the following code:</p>

<pre><code>s = ['01','06','11','16','21','26','31','36','41','46','51','56']

while True:
    for a in s:
        if time.strftime('%S') == a:             
            print 'YES'
        else:
            print time.strftime('%S')
            time.sleep(1)
            print a
</code></pre>

<p>And it doesn't work.</p>

<p>Any ideas how to make it work?<br>
In case, everytime the <code>%S</code> gets some of the value in <code>s</code>, it prints the <code>'YES'</code>.</p>
