“Computer science” and “programming” aren’t the same subject, and you should decide which one you want to learn first. And you’re certainly not going to learn computer science by programming either, because that’s not how it works—learning computer science is a lot like learning math, and you can learn it by doing problems with a pen & paper. No actual computer is necessary in order to learn computer science (it may sound paradoxical but it’s true).
There are many resources on the Internet devoted to learning how to program, so I won’t bother going into that.
If you want to learn computer science, you then have to decide which sub-topic you want to learn first. Data structures and algorithms? I wrote an old post on that here which might help: What is your strategy for learning data structures and algorithms?
Before you jump into data structures and algorithms, you should have a solid background in discrete math if you don’t already. This book seems like it could be good based on the customer reviews: https://www.amazon.com/Discrete-Mathematics-Introduction-Oscar-Levin/dp/1534970746/
Once you have the necessary math background, it will be a lot easier to learn data structures and algorithms, and you can refer to that post I linked above for resources that I recommend.