It wasn't the first time I programmed but it was first time I encountered problem solving with code.
I'm not one those (very admirable) people who build just to build, who make their own version of frogger or something. I need a problem to solve.
But making a program that would take the parameters of a physics problem and spit out all the other quantities or that formatted output the way my stats teacher wanted it was a huge timesaver and that motivated me.