Python is a widely used interpreted, interactive,
object-oriented and high-level programming language. It was created by Guido Van
Rossum in February 20, 1991. Python is a very simple programming language so
even if you are new to programming, you can learn python without facing any
issues. The syntax of python program is as simple as like maths formula.
Now let us learn some key points in the above statement:
- Interpretable or interpreted – The interpreter is used mostly for scripting languages like python, Visual Basic, Java, etc. which directly executes the code by converting it into an intermediate code (common code) usually called the byte code. This byte code is platform independent which can later be run on different platforms so the code is portable.
- Interactive – Python is an interactive language because you can see the output of the written command on the python prompt.
- Object Oriented – Python supports Object-Oriented style or technique of programming that encapsulates (combination of statements or commands) code within objects. Suppose that we eat many different kinds of vegetable, fruits, etc. to fulfill our daily nutrition. Some people take vitamin capsule to complete their daily nutrition instead of eating different types of vegetables or fruits. This vitamin capsule is a combination of different nutrients which is encapsulated or enclosed in a shell. We can call vitamin capsule as an object.
The features of python are:
- Simple and easy to learn – Unlike Visual Basic or QBasic the programming in python is very much simple because the programs are written in simple English language. Python uses very few keywords. Structure of the program is very simple and easy to create.
- Platform independent and portable – Python program can run on any platform whether it is Mac, Windows or Linux system. When you compile the python program it first converts into bytecode then into machine code. The conversion from python source code to machine code is done by Python Virtual Machine. [Bytecode represents a fixed set of instructions that runs on all operating system] This bytecode can be carried anywhere for the execution of the program that is why it is called portable.
- Open Source – Python is available for free anybody can download and make programs in python. Also you can add or update modules or functions in python library.
- Dynamically typed – There is no need to define the type of the variable whether it is int, float or string.
- Huge library – Python has large inbuilt library with prebuilt function, also known as the standard library.
Comments
Post a Comment
Students you can ask your doubts in comment section