First of all, thank you for explaining the problem so well.
So, if I understood the logic correctly then when True is returned the loop doesn’t continue. It ends. This is why for first letter “h” it returns true and just ends.
If it’s given a return value of False then when it finds “h” has been found but it is supposed to return only value when it’s False, so it continues the loop.
Thank you again for this.
Instead of changing the conditions and signs randomnly ,sitback and try n understand the logic behind the code and is probably causing the problem
I may come out as I am putting values randomly. But I wasn’t actually doing that. My initial code solved almost all the values except for one. And I saw one guy using a different version that mine and it solved the code. This led me to experiment with different signs.
In my head I couldn’t understand the fact that the loop is stopped after returning true value. I confused myself a bit.