Programming fantasy maps tutorial

Is there a programming tutorial on creating 2D fantasy maps of countries, continents and such? The programming language could be python, java, c++, javascript, etc I do not have Unity.