In the UK at A-level (age 16-18) you may still be taught linear and dynamic programming before ever touching a line of code! (Indeed, that was the same for me!)
Most of this seems sensible. Governments should be spending to prepare for a changed climate, in case global warming is irreversible (which I think is the likely trajectory). Investing totally in net zero by 2050 is not responsible governing.
In the U.K., that means building flood defences for the winter, water storage for the dry summers (avoiding the inevitable cries of NIMBYs like Layla Moran) and possibly investing in AC for hotter summers.