New course! Every coder should learn Generative AI!
Try a free lesson+ 11
Well, Python has many scientific oriented libraries like:
NumPy, SciPy, SymPy, Matplotlib, pandas, ChemPy, AstroPy and others.
Plus it natively supports complex numbers and exponents.
And Jupyter notebooks are Python based.
So it's quite obvious why now it's used in scientific fields, so why was it used before all those libraries were created? 🤔
Maybe before it wasn't used much in scientific fields, I don't know, but nevertheless it had success thanks to the fact it's extremely easy to learn: I completed the SoloLearn course in a week without effort (I have an informatics background, but with it's uselessness Pascal and a tiny bit of c/c++)
But yes: Python is slow like a brick. 😄
+ 9
It's more easy to learn and full of science libraries?
+ 9
I don't think python is too slow to accomplish a task. Many software engineers and data scientists use python as a good tool.
Also the reason that python is so popular us presence of a good base of inbuilt and user created modules which are useful for general purpose programming and data science.
Many modules like numpy, scipy, pandas are used in scientific and data science related things.
+ 9
The real reason is that scientific computations programs are way more complex than any other type of program, those programs contains very complex algorithms. Imagine doing AI or data science with C++, your brain would literally give up(that's an exaggeration, but it wont be friendly) . Python is inherently slow but it also has libraries that has some level of C++ implementation that helps it run faster. When python is used on robotics, it is usually used together with a relatively lower level language to do the heavy lifting.
Python's easy syntax makes it the winner in the field.
+ 8
I'd say because it's been around much longer than more modern "efficient" languages, and therefore has a much bigger user base and fan club.
+ 8
Python is powerful for all purposes. It has many libraries which help you make hard things, easy things. Thats why its used in data science.
+ 8
One word. Libraries.
+ 7
So, as others have said, python is great because you don't need 10 + years to be awesome at it, it works cross platform, huge community and great libraries for scientists and humans alike. Try c++ or c# and you will see what I mean. You can use python scripts in c, c++ and c# too. Python really is a great little language. Basically, python is for everyone.
+ 6
I've actually done some basic(too basic😀) data science in my phone. And had some courses.
Many says Python is too slow than lower level languages. And only reason for it being popular is it's easiness…
No, actually Python is high level programming language and thus slower definitely. But it has many modules and features making it easy and dynamic with less proneness to human mistakes.
Now, main thing about speed. You may know about NumPy module and maybe others. You may have noticed it's array is more rigid than Python lists, but much more speedy. Specific modules actually bring to low levels and increases speed. That's why using modules and libraries is recommended even if you can do without it.
(I couldn't explain perfectly as English isn't my native language, hope you undertake my meaning)
Modules and libraries are also regularly updated.
+ 5
NumPy, SciPy, Pandas
+ 4
it just a need a simple answer, as we know python is a programming languange that near with human languange ,in this case with english languange, and it have a lot a library thats written with an old languange, and pyhton is a simple language programming, in other languange wee need a write some line code to print 'hello world' but with python we need just one line of code.
+ 4
Python is simply the best, you can't argue with the best, when something is good, it's good, people will know it's good, people will use it, everyone loves good things 😂😂
+ 4
Part of the reason for python's relative slowness, is that it is an interpreted language.
Some of this disadvantage can be mitigated with Cython or Jython, which are basically extensions (or alternative implementations) of the Python language with C and Java interop, turning it into a compiled language, thereby increasing its performance.
+ 3
I took a refresher CS class in college and they used python as the language. I think it is good for beginners as well. I also took a more advanced class with the same professor and we used python again.
+ 2
"Naked" python is slow, but libraries like numPy are written in c++, so they are fast.
+ 2
Well you can speed up python code by using implementations like cython or pypy
+ 1
Because.....
1. Its sooo SIMPLE, seriously!
2. Its a general purpose language. Its like the swiss knife for languages.
3. The abundance of LIBRARIES.
4. Its slow sure but couple it or implement it with other language and problem solved!
0
I Will Not Give Up! 😂😂😂it's true
0
it's easy and fun for beginners or people who code for fun. I'm planning on learning javascript but python is starting me off. plus, it's not tHät sLoW and logo's probably slower
0
because pythong is uses easy