How much does it cost to fly a plane? INCLUDING lessons, and everything else
As Ben says, it depends a lot on which country you're in: Both due to natural differences in the cost of things (Germany is more expensive than, say, Vietnam for instance) but also because different countries have different requirements for how much experience you need before they hand you a license.

But as an example let's go with the USA, based on the prices from my old club in MA:


Going from zero experience to a private pilot license will typically cost you around \$8-9k. A bit less if you learn quickly or a bit more if you need extra practice. If you already bought your own plane then this will be reduced quite a lot. The exat figures will depend on how much time you need with an instructor vs how much time solo but you can, ballpark estimate, halve the cost by using your own aircraft. This only works in some countries, though. Others (including EASA in Europe, I think) require a 'company' aircraft.
A  basic plane will cost anywhere between \$15-25,000. The cheapest I've seen recently was just over \$13k but it looked like junk.
Fuel costs around \$6.50 per gallon and you use anywhere from 5-8 gallons per hour, typically. Maintenance depends a lot on the plane, my old flying club used to spend about \$3500/year on each of their Cessna 172s.  You also have insurance on top of that, which is likely to be around \$2.5k