I am the main developer of the MathPiper open source computer algebra system (http://mathpiper.org). An effective kind of programming language to learn that will help you learn math is a programming language that is part of a computer algebra system. The following video shows MathPiper solving an equation step-by-step:
https://www.youtube.com/watch?v=cy6bwNBkAK0
If you are interested in learning the MathPiper programming language and how this solver works, feel free to contact me using the email address that is in my profile.