BigPurpleSkiSuitYeah there's no way I'd handle a gun without training. How much did all that stuff cost in the first place?
This varies as much as "how much does your ski setup cost?" Think of wearing a Columbia jacket, North Face gloves, and buying old rentals from the shop vs buying the nicest, newest everything.
The permitting process varies from state to state, and county to county within each state. It may be fairly inexpensive to get a carry permit, or it may be several hundred dollars, many hours of time, and take several years. In general, California and East Coast states are the most difficult and most expensive.
Buying the gun (or guns) is also personal choice as to how much you spend. Figure anywhere from $250 to $1,200. Then there is the consideration of how you will be carrying it. Ankle holster? IWB? Plenty of holster options, and all cost money. Ammunition is not cheap. You will also need cleaning supplies and a responsible way to store the firearm (think gun safe).
Training can (and likely should) be individualized. Figure an hourly rate with a licensed instructor, using your firearm. Then you should absolutely join a rod & gun club to have access to a range where you can shoot frequently and stay comfortable with the usage of your firearm. If you're in a city, you will need to either join an indoor range or rent range time from them ($20/hr or so, + ammo of course).
There is a lot more to it than just purchasing a pistol. To do it right is a serious responsibility that requires time, effort, and money.
You will also need to stay current on laws as to where you are allowed to carry and where you are not allowed to carry (no post offices or government buildings for one). A pistol permit is a state permit, although parts of your state may not allow carry. Many states have reciprocity with other states. If you are dedicated enough you can acquire permits from a number of states and be able to carry most places. Utah is the most widely sought-after permit as it allows carry in 40+ states. Florida is another state that has reciprocity with many other states. Several states such as CA and NY do not offer any reciprocity, making it only legal for citizens of those states to carry in those states.