1 Python Features
1 Python Features
Python provides many useful features which make it popular and valuable from the
other programming languages.
It supports object-oriented programming, procedural programming approaches and
provides dynamic memory allocation.
We have listed below a few essential features.
2) Expressive Language
Python can perform complex tasks using a few lines of code. A simple example, the
hello world program you simply type print("Hello World").
It will take only one line to execute, while Java or C takes multiple lines.
3) Interpreted Language
Python is an interpreted language; it means the Python program is executed one line
at a time.
The advantage of being interpreted language, it makes debugging easy and portable.
4) Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, UNIX, and
Macintosh, etc. So, we can say that Python is a portable language.
It enables programmers to develop the software for several competing platforms by
writing a program only once.
6) Object-Oriented Language
Python supports object-oriented language and concepts of classes and objects come
into existence.
It supports inheritance, polymorphism, and encapsulation, etc. The object-oriented
procedure helps to programmer to write reusable code and develop applications in
less code.
7) Extensible
It implies that other languages such as C/C++ can be used to compile the code and
thus it can be used further in our Python code.
It converts the program into byte code, and any platform can use that byte code.
10) Integrated
It can be easily integrated with languages like C, C++, and JAVA, etc. Python runs
code line by line like C,C++ Java. It makes easy to debug the code.
===================================================================================
============================
Python Applications
Python is known for its general-purpose nature that makes it applicable in almost
every domain of software development. Python makes its presence in every emerging
field. It is the fastest-growing programming language and can develop any
application.
1) Web Applications
We can use Python to develop web applications. It provides libraries to handle
internet protocols such as HTML and XML, JSON, Email processing, request,
beautifulSoup, Feedparser, etc. One of Python web-framework named Django is used on
Instagram. Python provides many useful frameworks, and these are given below:
Tkinter or Tk
wxWidgetM
Kivy (used for writing multitouch applications )
PyQt or Pyside
3) Console-based Application
Console-based applications run from the command-line or shell. These applications
are computer program which are used commands to execute.
This kind of application was more popular in the old generation of computers.
Python can develop this kind of application very effectively.
It is famous for having REPL, which means the Read-Eval-Print Loop that makes it
the most suitable language for the command-line applications.
Python provides many free library or module which helps to build the command-line
apps. The necessary IO libraries are used to read and write. It helps to parse
argument and create console help text out-of-the-box. There are also advance
libraries that can develop independent console apps.
4) Software Development
Python is useful for the software development process. It works as a support
language and can be used to build control and management, testing, etc.
SciPy
Scikit-learn
NumPy
Pandas
Matplotlib
6) Business Applications
Business Applications differ from standard applications. E-commerce and ERP are an
example of a business application.
This kind of application requires extensively, scalability and readability, and
Python provides all these features.
Gstreamer
Pyglet
QT Phonon
8) 3D CAD Applications
The CAD (Computer-aided design) is used to design engineering related architecture.
It is used to develop the 3D representation of a part of a system. Python can
create a 3D CAD application by using the following functionalities.
Fandango (Popular )
CAMVOX
HeeksCNC
AnyCAD
RCAM
9) Enterprise Applications
Python can be used to create applications that can be used within an Enterprise or
an Organization.
Some real-time applications are OpenERP, Tryton, Picalo, etc.
OpenCV
Pillow
SimpleITK
In this topic, we have described all types of applications where Python plays an
essential role in the development of these applications. In the next tutorial, we
will learn more concepts about Python.
-----------------------------
--> Python has two basic modes: script and interactive.
1. Interactive mode is a command line shell which gives immediate feedback for each
statement
a. Interactive mode is used when an user wants to run one single line or one
block of code
b. It runs very quickly and gives the output instantly.
2. The normal mode is the mode where the scripted and finished . py files are run
in the Python interpreter
a. Script Mode, on the other hand ,is used when the user is working with more
than one single code or a block of code.(NO.of lines)
Syntax: