def _validate_transition_symbols_length(self, length, paths): for tape_symbols in paths.keys(): length1 = len(tape_symbols) if length != length1: raise exceptions.Badcounttapes( 'zlý počet pások : ({}) v prechodovej funkcii'.format( tape_symbols))
def _validate_transition_length(self, length): for state, paths in self.transitions.items(): for result in paths.values(): length1 = len(result) if length != length1: raise exceptions.Badcounttapes( 'zlý počet pások : ({}) v prechodovej funkcii'.format( result))