def result(self, state, row):
        "Place the next queen at the given row."
        col = state.index(None)
        new = state[:]
        new[col] = row
        return new
def result(self, state, row):
        "Place the next queen at the given row."
        col = state.index(None)
        new = state[:]
        new[col] = row
        return new
def result ( self , state , row ) : col = state . index ( None ) new = state [ : ] new [ col ] = row return new
Place the next queen at the given row.
Place the next queen at the given row .