May-24-2018, 02:12 AM
what idx < idx1 is actually saying is, if bad comes before good then do
and if either bad or good is not in the string an exception will be raised.
So you need to check for 1 more 'not' for idx and 'bad' for idx1,
now it says is not before bad!
and if either bad or good is not in the string an exception will be raised.
So you need to check for 1 more 'not' for idx and 'bad' for idx1,
now it says is not before bad!