Help me in solving PYSTRARR1 problem

My issue

You are iterating through a string ‘u’ of length > 2.
You are checking if the sequence ‘th’ is present anywhere in the string.
Rearrange the given code to correctly check for this.

Learning course: Strings using Python
Problem Link: CodeChef: Practical coding for everyone

@kumari18
This will be the correct rearrangement

while i < (len(u)-1):
    if u[i] == 't' and u[i+1] == 'h':
        print('Yes')
        break
    i = i + 1
if i == (len(u) - 1):
    print('no')