Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8
My guess is that it's because mathematicians prefer clean code! Python was developed to be easy to use. It comes with fewer keywords and a syntax that may be seen as "more natural" than other higher languages. At the moment python is the first choice in AI and Machine Learning as it comes with num.py, a very handy package for matrix operations that you will need for linear algebra in python. https://code.sololearn.com/cq1LGPN3bHK7/?ref=app
22nd Jan 2019, 1:10 AM
Felix Pernat
Felix Pernat - avatar
+ 6
Python mostly use in AI,machine learning which is 99% is mathematics.so this is very similar to why python mostly use in AI world. So math is also a complex things which is use to make more complex things.means complex make complex i think it is very complex so here we need something simple and also a user friendly programming language to make these complex things a bit simple and python help us. Python has also many frameworks which is use for mathematics work.dont think only python use in maths here are so many others programming languages which is use for this but python is more easy than others.
22nd Jan 2019, 8:51 AM
Maninder $ingh
Maninder $ingh - avatar
+ 2
One thing that could contribute: Python number types behave a bit more like you would expect them to when you know numbers but not computers. If you divide an int by a float, it becomes a float, you don't even have to think about it. And when you increase ints by multiplying or something, they just get bigger and bigger as you'd expect. In languages like C, you have to constantly worry about types and sizes of types: How do I prevent overflow? Which size do I need? Do I need it signed or unsigned? What type is the result of a calculation? Do I need to type cast? Etc. If you just want to 'calculate stuff', all of that can be annoying. So if you could have a language that takes care of all (most) of that for you so that you can just concentrate on the numbers, like you are used to, and it's also simple, I can easily see why that would be attractive.
22nd Jan 2019, 9:17 AM
HonFu
HonFu - avatar
+ 1
The main philosophy of Python is:Simplicity and Minimalism
23rd Jan 2019, 8:09 PM
Celestino🇰🇪🇫🇷
Celestino🇰🇪🇫🇷 - avatar