Write a function you can check
What is a payment of 100 due in two years worth today at annual discount rates of zero, five and ten percent? The question is small enough to check on paper and specific enough for a first program. Thomas J. Sargent and John Stachurski wrote QuantEcon’s Python Programming for Economics and Finance as an entry point. QuantEcon develops open computational economics tools, and its lecture catalogue acknowledges support from the Chow Institute at Xiamen University. This text focuses on programming and numerical work. Later series develop economic models.[1][2][4]
Getting Started offers Google Colab in the browser or a local Jupyter installation through Anaconda. Most lectures have a notebook launcher at the top right where you can choose Colab. Copy an example cell into your own notebook, run it and change one input. If you need offline access or want colleagues to use the same environment, keep a local notebook and package record. The introductory lecture also suggests asking a language model to explain code. Test an explanation with a result you can predict.[2][3]
Take annual compounding, a decimal rate and a payment of 100. The formula is 100 / (1 + r) ** t. After turning it into a function, start with a zero rate. Whether the payment is one or two years away, the result should be 100. At two years and five percent it is about 90.70; at ten percent, about 82.64. If the higher rate gives a higher value, inspect the parentheses, exponent and units. These are invented programming inputs with hand-checkable outputs, independent of any investment forecast.[1][2]

Figure: From the programming text to the economics series.
Let the data shape guide your reading
Functions, objects and namespaces lead into scientific computing. Put several rates in a NumPy array and use Matplotlib to plot value against waiting time. SciPy supplies further numerical tools. Label each rate and say whether a period is a quarter or a year. The high-performance chapters cover Numba, JAX and automatic differentiation. Speed and derivatives become meaningful once inputs have units. A zero rate returning the original payment remains a useful test.[1]
For income by region and year, turn to the data chapters. Pandas has a dedicated panel-data lecture, and there is a chapter on Polars. If a region has two rows in one year, determine whether they represent different populations or an accidental duplicate before aggregating. Add a column for the observation unit and record the first and last year per region. This will show whether all regions cover the same period. Document the components if you keep only totals. Later chapters cover organising longer programs, debugging and symbolic work in SymPy. After refactoring, run the original function on the same inputs.[1]
Once the notebook records the formula, outputs and checks, the catalogue offers a first course in quantitative economics, followed by intermediate or advanced material according to background. Other series cover modelling with JAX or Julia. The programming text carries CC BY-SA 4.0. Keep its attribution and licence, and identify adaptations when preparing teaching material for a group.[1][4]