Pi is nice, but also used hardware would do the job. At least in Western countries old Core2 Duo business desktops are basically worthless by now, and such laptops don't exactly cost much either. Why not export more of those and get some more years out of them before recycling? They are perfectly adequate for learning to program.