print "length of self.__fields =", fieldlengthfor counter1 in range(fieldlength): if self.__fields[counter1] == field: print "counter1 == field" for counter2 in range(rowlength): #print self.__rows[counter2][counter1] if self.__rows[counter2][counter1] == value: return1 = counter2 matchcount = matchcount + 1 print "The Match count is INSIDE THE LOOP: " + str(matchcount)## counter2 = counter2 + 1 Has no effect else: print "counter1 & field NOT equal"## counter1 = counter1 + 1 ## this statement does nothing
for ctr in range(0, 10): print "loop's counter =", ctr ctr += 5 print " ", ctr, "= incremented but doesn't have any effect"