use for loop to render sequence?

hi I try to render bunch of sequence using for loop in python but it only render the last sequence, is there a way to do it in loop?