If all you want is to familiarize yourself with some basic programing concepts, programming language constructs (types, expressions and control statements like if and while) and was able to solve some simple problems with basic algorithms, I think your current setup is enough. You can learn all these on your 6 GB RAM laptop.
But if you were gonna learn programing in certain domains, for exmaple, most of deep learning things is both computing intensive and IO bound, you might be forced to consider upgrading your PC.
That’s called alienation/objectivation. Unfortunately we are and probably will be stuck with that for a long time to come.