def state_symbols_match(pattern, value):
    """ returns True if the value matches the pattern, where '.' can be used
    as placeholders that match every state """
    return all(a == '.' or a == b
               for a, b in zip(pattern, value))