May-24-2018, 02:42 AM
(May-24-2018, 02:12 AM)Larz60+ Wrote: 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!
I will study try except blocks. Never used them before. Thank you for putting me back on the path.
Do you know why if I change it to "bad" and "not" it still changes "This tea is not hot"? How could it match on those conditions? I feel like I am not understanding something fundamental.