Try using the “step size” argument to range or xrange:
fd = open(dFile)
lineas = fd.readlines()
fd.close()
for i in xrange(0, len(lineas), 6):
print "CA:"+lineas[i]+"Q:"+lineas[i+1]+"A1:"+lineas[i+2]+"A2:"+lineas[i+3]+"A3:"+lineas[i+4]+"A4:"+lineas[i+5];
0
solved How can I increase the i in a for?