@futurebird one part of it may be that you get instant-ish feedback. When you're doing a math problem with pen and paper, you can write down a wrong answer and not know it until someone shows the expected answer.
That "run"/"compile" button (or IDE feedback / warnings) is happy to tell you almost immediately if there's something the computer can't figure out. And since the computer does a bunch of big mysterious stuff (and is always right), if there's a problem, it's definitely that YOU are WRONG.
Starting with something about getting unstuck on your own (and grounding it in patterns they already know from math) sounds like a good idea.