If your goal is to learn programming, as TerryLaze suggests, start with the learning the basics of programming, which requires no computer at all. I have found that those that start off just putting lines of code together to see what they do turn out to be the worst programmers.
Programs have to have a purpose. The purpose of "Hello World" is to ensure the system's output is working. In every program it is "how can I manipulate the bits into an arrangement of my choosing."
I'd recommend a RPi 3 B+ which is a very complete system for $25. Of course you'll need a keyboard and mouse, which could be had for $10, an a monitor, which could be a TV (and an HDMI cable) Save your money for your gaming computer.
My personal opinion...