Python Introduction
Python Introduction
-----------------------------------------------------------------------------------
------------
1)why Python?
2)who can learn Python?
3)How Python was Built?
4)Python Real Time Applications
5)Python USage
6)Python Features
7)Python Comparision with other programming
8)Python Scope and Jobmarket.
9)Python Software Foundation(PSF)
-----------------------------------------------------------------------------------
-----------------
why Python?
Python is a
-General Purpose
-Multi Programming paragigm
-High-level
-interpreted
-user-friendly programming language
-----------------------------------------------------------------------------------
-----------------
Python was built or derived by taking the features or advantages from various other
programming languages
such as
1)Procedural Oriented PRogramming: ex :C-Language---------->Functions
2)Object Oriented Programming ex: C++,Java ----------->Security,Re-
usability,flexibility
3)Scripting Languages ex: shell script--------->dynamic Datatypes
4)Modular PRogramming ex: modula-3 ---------->Modules--------->89300
-----------------------------------------------------------------------------------
------------------
Dynamic Datatypes:
C/C++/Java Python
-----------------------------------------------------------------------------------
------------------
Modules :
python provides modules for each and every domain such as
Datascience ------------->seperate modules
MAchine Learning---------> " "
BigData------------------> " "
Testing -----------------> " "
Networking --------------> " "
Animations---------------> " "
OS ----------------------> " "
Oracle-------------------> " "
mysql--------------------> " "
excel -------------------> " "
xml ---------------------> " "
csv----------------------> " "
pdf ---------------------> " "
math---------------------> " "
statistics---------------> " "
Administrative Activities> " "
Graphs-------------------> " "
-----------------------------------------------------------------------------------
-------------------
Python Real Time Applications:
-----------------------------------------------------------------------------------
------------
who are using Python Today:
10)Financial MArketing.....
-----------------------------------------------------------------------------------
---------------
Python Features:
3)Supports interactive mode: USer can easily interact with Python interpreter line
by line.
7)Extendable
-----------------------------------------------------------------------------------
-------------------
Python Comparision with other PRogramming:
import java.io.*;
class sample
{
public static void main(String args[]) throws IOException
{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
System.out.println("Enter 1st No:");
String s1=br.readLine();
int i=Integer.parseInt(s1);
System.out.println("Enter 2nd No:");
String s2=br.readLine();
int j=Integer.parseInt(s2);
System.out.println(i+j);
}
}
-----------------------------------------------------------------------------------
----------------
2)Using Python:
x=int(input("Enter value of x:"))
y=int(input("Enter value of y:"))
print(x+y)
-----------------------------------------------------------------------------------
----------------
Python Software Foundation(PSF):
PSF is a non-profit organization devoted to python programming language.
-It was launched on March 6th,2001.
-Mission : to faster the development of python community.
-in 2005, PSF recieved "COmputerworld Horizon Award" for cutting-edge Technology
President and Founder : Guido Van Rossum
Headquarters: Delaware,Unitedstates
Official website: www.python.org/psf
-----------------------------------------------------------------------------------
-------------
Python versions:
-----------------------------------------------------------------------------------
--------------
Python Installation:
Interactive mode: Here we directly type our python stmts on interpreter and can
easily communicate line by line.
Batch mode: Here we write set or batch of stmts within Editors/IDE's and save it by
using
.py extension and later submit to python interpreter.
various Editors
1)Notepad
2)Editplus
3)vi
4)nano
5)gedit
-----------------------------------------------------------------------------------
-------------------
Python Datatypes: Datatypes represents the type of data to be used.
-----------------------------------------------------------------------------------
----------------
Defining variables in python: