Funicular dos Guindais - Portugal
This funicular in the heart of Porto operates from lower station Ribeira (at the level of the Douro river) to the plateau of Batalha. The first part is rather steep (up to 45%) while after the crossing loop the line is almost flat.

Porto, 17-10-2017 Digital photo by Marco van Uden