From recent past experience trying to help someone, who’s current level is like a brand-new beginner, I would suggest the following:
YouTube videos that come up when you search “How to learn basic programming” or “programming for beginners” or “introduction to programming” or “programming basics”
Or add your language of choice to those searches; for example “programming for beginners python”
I love “Tim Corey” on YouTube but find a YouTube teacher who has a style that you like
“CS50” course on YouTube with the Harvard professor. The whole thing is like 20 hours but it is time well spent.
Then to start practicing, go to codewars.com, and do their beginning level tasks (they call it level “kya 8”). If you don’t know how to solve one of those, you can basically click on the equivalent of “I give up; show me” button and you’ll see how others solved it.
Also you can search on YouTube for the title of the Kata (what Codewars calls their puzzles) and you will often find videos of people solving them.
Don’t worry if it takes you a long time to solve one; speed will come with time.
~ ~ ~
Then, when you feel like you’ve gotten that level mastered, come back to Codingame and go to “Codingame.tools” website. There you have access to thousands of what we call Clashes which are little tasks that can be solved in 5 to 15 minutes. But on the “Codingame.tools” you have unlimited time, so you can Google and experiment and try for as long as you want.
And ultimately you can see it solved in a language by scrolling down.
( I recommend you search for “Lisa-Has-Ideas” for some great clashes, but I’m biased.)
~ ~ ~
When you are comfortable with that, then go to Codingame proper and do the Clashes timed (along with other people). Do a bunch of those.
Then start with the easy “classic puzzles” in Codingame.
And if you get stuck there, the “discussions” section will usually give you some hints
By then you’ll have learned a ton.