Dubrovnik has a cable car up the mountain to its north-east: I would guess around 400 metres at the top.
Pictures below show: a waitress at the terrace restaurant with clouds below, obligatory pix of Clare and myself on the mountain top, and the sky-view of Dubrovnik old town.
After we rode down we would have walked the old town walls - we did in fact buy tickets. But when we climbed the steps we found - to our surprise - that it was a one-way system, and our way would have been steeply uphill.
We were reimbursed and had ice-creams instead.