+ 6

How is Python better than Java?

As a beginner in Python, I wanted to know how is Python better than Java. I have a decent amount of experience in Java.

6th Feb 2017, 2:39 AM
Manthan Raja
Manthan Raja - avatar
2 Answers
+ 5
Development phases in Python are generally shorter. Python snippets are typically shorter than Java. Python is dynamically typed which means we don't declare data types (although that's great but it can be a problem as the project grows). Writing lines in Python isn't as verbose as Java. Python is amazing when dealing with file I/O, not that Java isn't but it's quite lengthy to perform some task. Networking is pretty good with Python. Also to say numpy, pandas and matplotlib which are all fabulous for crunching numbers and working with data. For me, I just really love the community. Requests, BeautifulSoup, Scrapy are just too good. It really boils down to the project and preferences. I didn't truly enjoy Python until I worked with other languages. Then again, that's me. Pros: dynamically typed *Great for small projects* Not verbose Nice community File I/O Easy to read Cons: Dynamically typed *Bad for larger projects* Not as fast Not as secure *No private Fields* There's a ton of more pros and cons but those are at the top of my head.
6th Feb 2017, 3:05 AM
Don
Don - avatar
+ 5
I had heard lot of positives about Python from my senior friends. But since the time I started learning, I felt it a little boring. :p Thanks @Don for giving such elaborate answer. I will keep these points in mind from now. Maybe the positives will make it interesting to learn this beautiful language. :)
6th Feb 2017, 10:04 AM
Manthan Raja
Manthan Raja - avatar