def isInSequence(word):
    """
    Checks if the string passed is a sequence of digits logically connected ("e.g. 369")
    """
    if len(word)<3:
        return False
    else:
        increment = int(word[0]) - int(word[1])
        for i in range(len(word) - 2):
            if int(word[i+1]) - int(word[i+2]) != increment:
                return False
        return True