• + 0 comments

    You know what, I don't care about re on this one. It broke my brain. But here is a version that passed all the test cases without re: if name == "main": s: str = input() k: str = input()

    found = False
    for i in range(len(s)):
        if k == s[i: i + len(k)]:
            print((i, i + len(k) - 1))
            found = True
    if not found:
        print((-1, -1))