Upvote:12
For flights within the Schengen area, visas don't matter. You can fly between Rome and Prague a dozen times if you want, and exit the airport every time, as well as any other airport in the Schengen area. Only when you board the flight from Rome (or anywhere in Schengen) to outside Schengen area will your visa be used up as you exited.
The same is true on arrival: your visa is checked when you arrive at any airport inside Schengen - here Rome. From then on, you can fly around as you like.