Comparing Python with Other Languages
Python comparison with Java, C++, Perl, Small talk, JavaScript, Tcl
Java
Python program are expected to run slower than java program. Due to Python`s built-in high level data types and its dynamic binding, it takes less time to develop than java. Python
programs are typically 3-5 times shorter than equivalent Java
programs. For example python program wastes no time on declaring the data types or variable and python powerful polymorphic list and dictionary types, for which rich syntactic support is built into the
language. Because of the
run-time typing, Python's run time must work harder than Java's. For
example, when evaluating the expression a+b, it must first inspect the
objects a and b to find out their type, which is not known at compile
time. It then invokes the addition operation, which may be
an overloaded user-defined method. Java, on the other side, can
perform an efficient integer or floating point addition, but requires
variable declarations for a and b, and does not allow overloading of
the + operator for instances of user-defined classes.
C++
Python is an object oriented script language while C++ is an object oriented compiling language. C++ is compiled explicitly but python is different. In python you used interpreter on command line for rapid testing and exploration
Perl
Perl and Python both are scripting language. Used for same purpose. Perl is much older language than python, so there are many great modules available for use. Therefore, Perl is therefore very powerful and versatile language . But on the other side , python code is easy to use for beginners due to its intuitive design.