r/AskEngineers • u/SomeMuayGuy21 • Mar 16 '19
Mechanical Is it worth learning Python as a Mechanical Engineer?
Greetings, I am a freshman in Mechanical engineering and I've already finished my MATLAB course, and I find coding fun, so I was wondering if I should learn python? But of course I won't waste my time learning it if it isn't beneficial to me. So my fellow MEs, how useful would it be learning python? And what are these benefits. Thank you!
296
Upvotes
View all comments
Show parent comment
9
u/AlexanderHBlum Mar 16 '19
Matlab has try, catch and the inputParser object. Between these things sanitizing inputs and handling errors has always get reasonable to me.
I’ve never had any trouble finding the location of an error in matlab code, but maybe I’m misunderstanding something about what you’re saying.
I’ve also never tried to write unit tests, by a quick google found a page showing the (seemingly) extensive functionality matlab has to assist in running several types of unit tests.