[Solved] How to add second value to same loop?


I have come with the solution, Thanks for the every on who support me and encourage me.

S = ['abcd5934','abcd5935','abcd5936','abcd7154','abcd7155','abcd7156']

Yesterday = [(u'abcd7154', u'1'), (u'abcd7155', u'2'), (u'abcd7156', u'3')]

Today = []


y_servers = [srvr[0] for srvr in Yesterday]
value = [Yes[1] for Yes in Yesterday]
print y_servers
print value
v = 0
for srv in S:

    if srv in y_servers:
        print("YES, VALUE= %s") % v
    else:
        print("NO Value = Empty")
    v +=1

solved How to add second value to same loop?