def findMatches(s1, s2):
    # This is a nice check to make the code more robust, but isn't required.
    if len(s1) != len(s2):
        return False

    for i in range(len(s1)): # equivalently, range(len(s2))
        if s1[i] == s2[i]:
            return True
    # can't return False until we've gone through the whole loop!
    return False

assert(findMatches("apple", "guava") == False)
assert(findMatches("apple", "grape") == True)