I have these two iterables:
bee=(5,6,7)
dee=(8,9,1)
for(f,b) in some_iterator(bee,dee):
print "f: ",f,": b: ",b
I want to iterate them in pairs and the output should be like this:
f: 5; b: 8
f: 6; b: 9
f: 7; b: 1
I know on way of doing this which is by iterating over the indices:
for i in xrange(len(bee)):
print "f: ", bee[i], "; b: ", b[i]
I want another more Pythonic way of doing this.Can anyone suggest?