I posted this a couple weeks ago but I think it’s a solid answer for someone looking to learn programming:
If you want a good understanding of the fundamentals etc, I cannot recommend CS50 enough. The original is more difficult and starts with basic stuff (you’ll be asking the computer for individual pieces of memory etc)
https://cs50.harvard.edu/x/2023/
There’s also a python focused version, which is much easier. But this will make learning other languages in the future a bit more tricky. So, depends what you’d prefer.
https://cs50.harvard.edu/python/2022/
Both are taught by David Malan, a Harvard professor who is easily one of the best lecturers I’ve seen.
Good luck!
Edit: Should’ve mentioned, they are all free or you can pay for a cert with edx.
CS50 covers pointers, objects, classes etc and will give you a solid foundation. Fully recommend though, fair warning, it’s challenging. Tideman nearly crushed my soul.