Skip to main content

Features of Python

 

Features of Python:

 

1.  Simple and easy to learn:

 

Python is a simple programming language. When we read Python program, we can feel like reading English statements.

The syntaxes are very simple and only 30+ kerywords are available.

When compared with other languages, we can write programs with very less number of lines. Hence more readability and simplicity.

We can reduce development and cost of the project.

 

2.  Freeware and Open Source:

 

We can use Python software without any licence and it is freeware.

 

  Its source code is open,so that we can we can customize based on our requirement. Eg: Jython is customized version of Python to work with Java Applications.                           

 

3.    High Level Programming language:

 

Python is high level programming language and hence it is programmer friendly language. Being a programmer we are not required to concentrate low level activities like memory management and security etc..

 

4.  Platform Independent:

 

Once we write a Python program,it can run on any platform without rewriting once again. Internally PVM is responsible to convert into machine understandable form.

 

5.  Portability:

 

Python programs are portable. ie we can migrate from one platform to another platform very easily. Python programs will provide same results on any paltform.

 

6.  Dynamically Typed:

 

In Python we are not required to declare type for variables. Whenever we are assigning the value, based on value, type will be allocated automatically.Hence Python is considered as dynamically typed language.

 

But Java, C etc are Statically Typed Languages b'z we have to provide type at the beginning only.

 

This dynamic typing nature will provide more flexibility to the programmer.

 

7.  Both Procedure Oriented and Object Oriented:

 

Python language supports both Procedure oriented (like C, pascal etc) and object oriented (like C++,Java) features. Hence we can get benefits of both like security and reusability etc

 

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:

1.  We can use already existing legacy non-Python code

2.  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.

 

11.   Extensive Library:

 

Python has a rich inbuilt library.

Being a programmer we can use this library directly and we are not responsible to implement the functionality.

 

etc...

Comments

Popular posts from this blog

C++ Lec-2 Introduction to Object-Oriented Programming (OOP) in C++

  Introduction to Object-Oriented Programming (OOP) in C++ Object-Oriented Programming (OOP) is a programming paradigm that uses objects and classes to organize software design. It allows for modelling real-world entities and relationships in a program. C++ is an object-oriented programming language that provides features to implement OOP concepts effectively. Key Concepts of OOP   Class and Object o    Class : A blueprint for creating objects. It defines properties and behaviours of objects.   class Car { public:     string brand;     string model;     int year; };   o    Object : An instance of a class.   Car car1; car1.brand = "Mahindra"; car1.model = "THAR"; car1.year = 2024;   Encapsulation o    Encapsulation is the bundling of data and methods that operate on that data within a single unit, or class. It restricts direct acces...

C++ Lec-1 (Introduction to Programming Languages)

  Introduction to Programming Languages ________________________________________________________________________ P rogramming languages are formal languages comprising a set of instructions that produce various kinds of output. They are used in computer programming to implement algorithms and control the behavior of machines. Language Generation Programming languages have evolved through several generations: First Generation (1GL) : Machine language, the most basic level of programming languages, consisting of binary code. Second Generation (2GL) : Assembly language, a low-level language with a strong correspondence to the machine language instructions. Third Generation (3GL) : High-level languages like C, C++, Java, Python, which are more abstract and easier for humans to understand. Fourth Generation (4GL) : Languages closer to human language, often used for database querying and report generation (e.g., ...

DATA TYPE in C/C++

  BUILT IN OF PRIMARY DATA TYPE     int (Integer) float(Floating-point) double (Double Floating-point) char (Character) wchar_t (Wide Character) bool (Boolean) void (Empty) Modified Data Types List    signed int - (used for integers) unsigned - int (can only store positive integers) short (used - for small integers (range -32768 to 32767)) unsigned short - (used for small positive integers (range 0 to 65,535)) Long - (used for large integers) unsigned long - (used for large positive integers ) long long - (used for very large integers) unsigned long long - (used for very large positive integers) long double - (used for large floating-point numbers) signed char - (used for characters (guaranteed range -127 to 127)) unsigned char - (used for characters (range 0 to 255)) Derived Type Data Type    Function Array Pointers References User-Defined Data Type   Class Structure Union Enumeration Typedef defined DataType