Introduction to Python Language – Part 1

Pankaj Salunkhe

Pankaj Salunkhe

Technical Specialist at CG
Microsoft Certified Solution expert in SharePoint and O365 with 9+ years of experience.

write to admin@sharecareinspire.com for contribution
Pankaj Salunkhe

Latest posts by Pankaj Salunkhe (see all)

>> Part 2

About Python

Python is high level programming language freely available, helps to solve computer problem as easy as writing thoughts about the solution hence widely used.  It was released in 1991. Python emphasizes code readability with interpreted language. Syntax of it allows programmers to express concepts in fewer lines of code written once and used almost in any computer without changing the program.

With Python you can create web and desktop application. Most of the popular applications like Instagram, YouTube and Spotify etc. uses Python. It is an interpreted language which means that it is not converted to computer readable code before the program run but at run-time.

Why and How to use Python

Python is general purpose programming language that can be used on any modern computer operating system. It is used for processing text, numbers, images, scientific data, operations of the google search engine, video sharing website like YouTube, Stock Exchanges. Large processing application are written mostly in python language.

Features of Python Language

Following are few important features of python language.

1. Interpreted Language: By Python interpreter, Python is processed at run-time.

2. Object Oriented Language:
It supports object oriented features in programming.

3. Interactive Programming Language: Users interact with Python interpreter instantly for writing programs.

4. Easy Language: For Beginners, it’s easy to learn language with syntax.

5. Straightforward Syntax: Formation of Python syntax is straightforward and simple which makes it popular.

6. Easy to read: Source code easily visible and clearly defined language.

7. Portable: Python code runs widely on variety hardware platforms having same interface.

8. Extendable: users can add low level modules to python interpreter.

How to install Python

Python is freely available for downloads in all major platforms (Window, Linux, Mac OS) in the form of source and binary.  It can be downloaded from website https://www.python.org/.

1. Install Python on Linux

The Python interpreter is usually installed as: /usr/local/bin/python on those machines where it is available; putting: /usr/local/bin in your UNIX shell’s search path makes it possible to start it by typing the command “python” to the shell.

Python 3 can be installed On Ubuntu Linux by using the following command from terminal.

$sudo apt-get install python3-minimal

2. Install Python on Windows

On Windows machines, the Python installation is usually placed in C:\Users\UserName\AppData\Local\Programs\Python\Python(Version), though you can change this when you’re running the installer.

3. Install Python on MAC

Python is already a part of MAC OS. user can open terminal and type python.

Integrated Development Environment for Python 

There are various GUI based Python IDE that python programmers can use for better coding experience.

Names of some Python interpreters are:

1. PyCharm

2. Python IDLE

3. The Python Bundle

4. pyGUI

5. Sublime Text etc.

How to Get Started with Python

There are two modes for using the Python interpreter:

1. Interactive mode
2. Script mode

Interactive Mode
Without passing python script file to interpreter, directly execute code to Python prompt.

Example:
>>>2+6
Output:
8


Script Mode
Programmers can store Python script source code in a file with .py  extension, and use the interpreter to execute the contents of the file. To execute the script by the interpreter, you have to provide the name of the file at prompt. For example, if you have a script name txtAnalysis.py, then to run the script you have to type:

 

>> Part 2


Check Articles From Categories      Health and Parenting      Inspiring Stories      Technology      Microsoft Azure      SharePoint O365

Leave a Reply

Your email address will not be published. Required fields are marked *