Linux

Python

Python is the probably easy to learn and nice to use programming language for solving problems on modern computer systems. Making a program in Python is very simple no need to define big classes and function although it has OOP power but to write a program you no need to define classes or functions. Guido van Rossum invented the Python programming language in the early The 1990s.

Let us understand by the example below

Example 1:

>>> 1+'1'
Traceback (most recent call last): File "<pyshell#0; >", line 1, in 1+'1' TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>> 1+int('1')
2
>>>

In above code, 1+'1' gives error because of different operand type(s).

Example 2:

#!/usr/bin/python print "Hello, Python!";