+ 2

What python can do which java cannot??

Advantages of learning python over java

11th Oct 2017, 11:21 AM
Bharath yadav
Bharath yadav - avatar
8 Answers
+ 5
Research in machine learning (AI) has been implemented in Python. For instance, google developed the library TensorFlow to implement neural networks using Python. It's incredible what you can do with just a few lines of code using tools like that! Also, it seams that, although its very "high level", Python has a very good performance. There is a youtube video showing some speed tests comparing Python, Java and C. In those tests Python is like 10 times faster than Java. C was faster than Python, but not that much faster.
11th Oct 2017, 1:28 PM
Leandro
Leandro - avatar
+ 5
I guess that, the pythons command shell has good contribution to it's popularity and to the ease to learn, hence it's considered the first language to learn by many tutorial sites , in response java 9 also included the Jshell, to beat python in popularity. I think python is more popular among people who, picked up programming for some specific tasks only.
29th Dec 2017, 1:47 PM
Morpheus
Morpheus - avatar
+ 2
@Martin Taylor: STATIC typing is not the same as STRONG typing... You are confusing the two of them... try doing a=[]; a = a + "s" in Python... it throws an error... meaning Python IS strongly typed... HOWEVER Python is a dynamic language. And he shortest code (in terms of elementary lines of code) IS the best and fastest (usually) in Python
29th Dec 2017, 2:52 PM
Amaras A
Amaras A - avatar
+ 1
Ok, I'm digging this one up. @Martin Taylor: Python IS strongly typed, and it has not been a toy language since Google, Dropbox, and other companies started using it as a main language... Also, in Python you do not have to choose between elegant code and fast code: the shorter code is usually the better and the faster.
29th Dec 2017, 10:50 AM
Amaras A
Amaras A - avatar