Oslo has plenty of frequent and fun electric rail cars throughout the city. Purchase an Oslo Card and they are all free. (You can do the same in Bergen with a Bergen Card.)