Every iteration of this loop generates 2 * i codes from previously generated i codes .
i = 2 NEW_LINE j = 0 NEW_LINE while ( True ) : NEW_LINE INDENT if i >= 1 << n : NEW_LINE INDENT break NEW_LINE DEDENT DEDENT