If " geek " and " keeg " are both present in s without over - lapping and " keeg " starts after " geek " ends
p = s . find ( " geek " ) NEW_LINE if ( s . find ( " keeg " , p + 4 ) ) : NEW_LINE INDENT return True NEW_LINE DEDENT return False NEW_LINE