In Rome, they have this great system, where you can buy them out of a machine, right on the bus.
So, pop your euro in the slot, grab your ticket and punch it in the validation machine.
You are good for 100 minutes of riding the bus system, a tram or the metro, or a combination.
It is a beautiful system.