This is a good example, but I've found that this benefit is actually non-obvious to people in the beginner stages of learning.
A popular view before starting to learn is that everyone should "learn to code" because programming jobs are in-demand and pay well (at the pre-beginner stage). Then, when many learners actually start to learn, it can take months to write a genuinely useful program. All the way, you might learn how to do arithmetic in Python and write loops, without a seemingly practical purpose (just seemingly-contrived exercises). I admit that this actually put me off programming for a while, because I couldn't see the upside.
Eventually, a web scraper became helpful for a project, along with a better understanding of programming for tweaking a website. Then I went back to studying, and it helped me greatly to have very specific goals. So, while "learning programming" is correct, I think it will help people stick with it, if specific outcomes are emphasizes (e.g. "learn automation through programming" or "learn website application development through programming").
A popular view before starting to learn is that everyone should "learn to code" because programming jobs are in-demand and pay well (at the pre-beginner stage). Then, when many learners actually start to learn, it can take months to write a genuinely useful program. All the way, you might learn how to do arithmetic in Python and write loops, without a seemingly practical purpose (just seemingly-contrived exercises). I admit that this actually put me off programming for a while, because I couldn't see the upside.
Eventually, a web scraper became helpful for a project, along with a better understanding of programming for tweaking a website. Then I went back to studying, and it helped me greatly to have very specific goals. So, while "learning programming" is correct, I think it will help people stick with it, if specific outcomes are emphasizes (e.g. "learn automation through programming" or "learn website application development through programming").