Well, here's a question:
What sorts of things are you wanting to make? Do you have a programming language in mind that you'd like to learn?
If you're not sure which one to go for, I'd like to suggest Python as a starting point. Though of course the question of "which one is best to start with" is very subjective.
As for where to get the learning done, well.... that's a tougher question. Usually lessons cost you, or things like books on programming also cost you. But you get what you pay for, and sometimes they arent as expensive as you might think. If you're looking to learn for free, Youtube is probably where you wanna go, but the problem with Youtube is it can be very erratic. Doesnt mean it cant work for you, but yes, it's erratic.
I personally right now am learning from a programming book I bought (for Python, as that's what I decided on as the best to start with after researching stuff), and I'm also learning GameMaker Studio 2 from Skillshare, and Unreal Engine 5 (blueprints, specifically) from Udemy. Skillshare aint too expensive but it is a monthy cost. Udemy is very expensive. The programming book, on the other hand, was just a one time buy, I think I paid like $30 for it. Be kinda silly if you had to pay monthly for a book, after all. Or throw $150 at it.