This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java vs Python  RSS feed

 
Saumyaraj Zala
Ranch Hand
Posts: 75
AngularJS Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Allen,
I am an java programmer and have heard a lot about python language. I would like to know advantages of python language and is there any similarity between python and java?
 
Allen Downey
Author
Greenhorn
Posts: 28
Java Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saumyaraj,

The semantics of Python and Java are very similar, and most of the data structures in the Java collections are either built into Python or available in libraries.

The biggest differences are syntax and dynamic typing. Python uses a minimal syntax that many people find very readable (although it might take getting used to). And with dynamic typing, you don't have to declare variables. Development time tends to be faster in Python, but the compiler can't catch as many errors for you.

For me as a teacher, the biggest difference is that Python is a better first language. I see more of my students succeeding, and doing cooler things, than when I was teaching in Java.

Regards,
Allen
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!