If next value is ( n + 1 )
elif ( ( getValue ( Str , i , 1 + int ( math . log10 ( n + 1 ) ) ) == n + 1 ) ) : NEW_LINE INDENT n += 1 NEW_LINE DEDENT else : NEW_LINE INDENT fail = True NEW_LINE break NEW_LINE DEDENT i += 1 + int ( math . log10 ( n ) ) NEW_LINE if ( not fail ) : NEW_LINE return missingNo NEW_LINE