Introduction Python
Introduction Python
But officially Python was made available to public in 1991. The official Date
of Birth for Python is : Feb 20th 1991.
To print Helloworld
Java:
2) {
3) p s v main(String[] args)
4) {
5) SOP("Hello world");
6) }
7) }
C:
1) #include
2) void main()
3) {
4) print("Hello world");
5) }
Eg2:
Java:
1) public class Add
2) {
4) {
5) int a,b;
6) a =10;
7) b=20;
8) System.out.println("The Sum:"+(a+b));
9) }
10) }
C:
1) #include
2)
3) void main()
4) {
7) b=20;
8) printf("The Sum:%d",(a+b));
9) }
Python:
1) a=10
2) b=20
3) print("The Sum:",(a+b))
"The Complete Monty Python's Circus", which was broadcasted in BBC from 1969 to 1974.
Guido developed Python language by taking almost all programming features from different
languages
4. Modular Programming Features from Modula-3 Most of syntax in Python Derived from C and ABC
languages.
Note:
Top Software companies like Google, Microsoft, IBM, Yahoo using Python.
Features of Python:
8) Interpreted:
We are not required to compile Python programs explcitly. Internally Python interpreter
will take care that compilation.
If compilation fails interpreter raised syntax errors. Once compilation success then PVM
(Python Virtual Machine) is responsible to execute.
9).Extensible:
We can use other language programs in Python.
The main advantages of this approach are: We can use already existing legacy non-
Python code We can improve performance of the application
10) Embedded:
We can use Python programs in any other language programs. i.e we can embedd Python
programs anywhere.
Limitations of Python:
1) Performance wise not up to the mark because it is interpreted language.
2) Not using for mobile Applications.
Flavors of Python:
1) CPython: It is the standard flavor of Python. It can be used to work with C lanugage
Applications.
2) Jython OR JPython: It is for Java Applications. It can run on JVM
3) IronPython: It is for C#.Net platform
4) PyPy: The main advantage of PyPy is performance will be improved because JIT compiler
is available inside PVM.
5) RubyPython For Ruby Platforms
6) AnacondaPython It is specially designed for handling large volume of data processing.
Python Versions:
Python 1.0V introduced in Jan 1994
Python 2.0V introduced in October 2000
Python 3.0V introduced in December 2008
Note: Python 3 won't provide backward compatibility to Python
2 i.e there is no guarantee that Python2 programs will run in Python
3. Current versions Python 3.6.1 Python 2.7.13.