0% found this document useful (0 votes)
24 views3 pages

1 ST

Python is a popular programming language that is in high demand according to job market data. It has many useful features like being platform independent and having a large standard library. Python can be used for a wide range of applications including web development, data science, and more.

Uploaded by

guddig2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

1 ST

Python is a popular programming language that is in high demand according to job market data. It has many useful features like being platform independent and having a large standard library. Python can be used for a wide range of applications including web development, data science, and more.

Uploaded by

guddig2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Why Python?

Now you might be suddenly bogged with the question, why Python? According to Institute of
Electrical and Electronics Engineers (IEEE) 2016 ranking Python ranked third after C and Java.
As per Indeed.com's data of 2016, the Python job market search ranked fifth. Clearly, all the
data points to the ever rising demand in the job market for Python. Its a cool language if you
want to learn just for fun or if you want to build your career around Python, you will adore the
language. At school level, many schools have started including Python programming for kids.
With new technologies taking the market by surprise Python has been playing a dominant role.
Whether it is cloud platform, mobile app development,BigData, IoT with Raspberry Pi, or the
new Blockchain technology, Python is being seen as a niche language platform to develop and
deliver a scalable and robust applications.

Some key features of the language are:


Python programs can run on any platform, you can carry code created in Windows machine and
run it on Mac or Linux
Python has inbuilt large library with pre built and portable functionality, also known as the
standard library
Python is an expressive language
Python is free and open source
Python code is about one third of the size of equivalent C++ and Java code
Python can be both dynamically and strongly typed--dynamically typed means it is a type of
variable that is interpreted at run time, which means, in Python, there is no need to define the
type (int or float) of the variable

Python applications
One of the most famous platforms where Python is extensively used is YouTube. The other
places where you will find Python being extensively used are the special effects in Hollywood
movies, drug evolution and discovery, traffic control systems, ERP systems,cloud hosting, e-
commerce platform, CRM systems, and whatever field you can think of.
Versions
At this time Python 2.x and Python 3.x are available.
Implementations of Python
Major implementations include CPython, Jython, IronPython, MicroPython, and PyPy.

Python interactive shell


Python interactive shell is also known as Integrated Development Environment (IDLE).With
the Python installer, two interactive shells are provided: one is IDLE (Python GUI)and the
other is Python (command line). Both can be used for running simple programs. For complex
programs and executing large files, the windows command prompt is used,where after the
system variables are set automatically, large files are recognized and executed by the system.

The preceding screenshot is what we call Python IDLE, which comes bundled with the Python
installation. The next screenshot is of the command line that also comes bundled with the
Python installation, or we can simply launch the Python command through the windows
command line and get Python command line. For most of our programming instructions, we
will be using the Python command line:

Setting environment variables in Linux


Linux comes with different types of shells and the Python directory path is usually
/usr/local/bin/python:
csh shell: Open the terminal and enter setenv PATH"$PATH:/usr/local/bin/python" followed by
pressing Enter
bash shell: On the terminal, enter export PATH="$PATH:/usr/local/bin/python" followed by
pressing Entersh or
ksh shell: Enter PATH="$PATH:/usr/local/bin/python" followed by pressing Enter

Writing a simple Hello World! Program

Contentent of the 1.py is


print ("Hello World")

Comments in Python
In Python, there are two types of comments--one is a single-line comment and the other is
multiline comment. For a single-line comment, # is used, while for a multiline comment,triple
quotes """ are used:

You might also like