I'd like to add that I personally think a mountainbike is a great starter. It's not the fastest bike you can get but the big tires are more forgiving with obstacles which is great especially for beginners. The slimmer your tire is the more attention you have to pay to the road. On a race bike you can't zone out during the ride.The downside is that you're lacking the capacity to carry a lot of weight comfortably so if you plan to do that go for a bike that's more focused on comfort.
I'd like to add that I personally think a mountainbike is a great starter. It's not the fastest bike you can get but the big tires are more forgiving with obstacles which is great especially for beginners. The slimmer your tire is the more attention you have to pay to the road. On a race bike you can't zone out during the ride.The downside is that you're lacking the capacity to carry a lot of weight comfortably so if you plan to do that go for a bike that's more focused on comfort.