Thursday, April 24, 2008

Python

Python is object-oriented programming language. It can be compared to Perl, TCL, Scheme or Java. Python has very clear and simple syntax. It has classes, exceptions, modules, and dynamic data types.

Python can run on many platforms like Windows, Linux, MAC, Amiga and others. The Python is is freely usable but its implementation is copyrighted.


Comparison with other Popular Languages:

Java:
Python programs are generally run slower than Java programs but Python programs are typically 3-5 times shorter than equivalent Java programs. The reason of this difference is Python's data types and its dynamic typing.

For example, a Python programmer does not declare the types of arguments or variables. Python's run time must work harder than Java's run time. For example, when evaluating the expression x+y, it must first inspect 'a' and 'b' to find out their type.


JavaScript:
Python supports a programming style that uses simple functions and variables without using class definitions like JavaScript. But the main difference is that Python support Object Oriented programming style.


Perl:
Python and Perl have similar background and similar in many features. The difference is that Perl supports common application-oriented tasks(built-in regular expressions, file scanning and report generating features) on the other hand Python supports common programming methodologies(data structure design and object-oriented programming)


C++:
The main difference is typing style. A Python program is typically 5 to 10 times shorter than equivalent Java program.


Tcl:
Tcl works as a stand-alone programming language like Python. However, Tcl, which traditionally stores all data as strings, is weak on data structures, and executes typical code much slower than Python.

1 comment:

bernard n. shull said...

hi mate, this is the canadin pharmacy you asked me about: the link