code: def moveListItem(L, fromidx, toidx):
      "Move element within list `L` and return element's new index."
      r = L.pop(fromidx)
      L.insert(toidx, r)
      return toidf moveListItem(L, fromidx, toidx):
      "Move element within list `L` and return element's new index."
      r = L.pop(fromidx)
      L.insert(toidx, r)
      return toidx
docs: Move element within list `L` and return element's new index.