Page 420 - CITS - Computer Software Application -TT
P. 420
COMPUTER SOFTWARE APPLICATION - CITS
8 Database Connectivity
Almost any type of database can be used as a backend with the Python application. DB-API is a set of specifications
for database driver software to let Python communicate with a relational database. With many third party libraries,
Python can also work with NoSQL databases such as MongoDB.
9 Extensible
The term extensibility implies the ability to add new features or modify existing features. As stated earlier,
CPython (which is Python’s reference implementation) is written in C. Hence one can easily write modules/
libraries in C and incorporate them in the standard library. There are other implementations of Python such as
Jython (written in Java) and IPython (written in C#). Hence, it is possible to write and merge new functionality in
these implementations with Java and C# respectively.
10 Active Developer Community
As a result of Python’s popularity and open-source nature, a large number of Python developers often interact
with online forums and conferences. Python Software Foundation also has a significant member base, involved
in the organization’s mission to “Promote, Protect, and Advance the Python Programming Language”. Major IT
companies Google, Microsoft, and Meta contribute immensely by preparing documentation and other resources.
More Features of Python
Apart from the above-mentioned features, Python has another big list of good features, few are listed below...
1 It supports functional and structured programming methods as well as OOP.
2 It can be used as a scripting language or can be compiled to byte-code for building large applications.
3 It provides very high-level dynamic data types and supports dynamic type checking.
4 It supports automatic garbage collection.
5 It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
Setting Up Path For Python
1 Get Python Installer from python.org.
2 Get the installer and an installation window will appear.
3 Press the “Add Python X.X to your PATH” option and install the python.
This way you can set up a default path without any headache.
BASIC SYNTAX
The Python syntax defines a set of rules that are used to create a Python Program. The Python Programming
Language Syntax has many similarities to Perl, C, and Java Programming Languages. However, there are some
definite differences between the languages.
Modes of Python Programming
There are two different modes of Python Programming...
1 Interactive Mode Programming
2 Script Mode Programming
Let’s execute a Python program to print “Hello, World!” in both modes...
1 Interactive Mode Programming
>>>
Here >>> denotes a Python Command Prompt where you can type your commands. Let’s type the following text
at the Python prompt and press the Enter...
>>> print (“Hello, World!”)
Result-
Hello, World!
407
CITS : IT&ITES - Computer Software Application - Lesson 120 - 137 CITS : IT&ITES - Computer Software Application - Lesson 120 - 137