Coding is more like music than math. Multiple parts work together cohesively to create something bigger. Just like music, a program or library always has a beginning, a middle, and an end.
Music and programming are creative tasks that require you to think of new ways to solve problems or express yourself. Math is a system of calculation.