Python History
Python programming language was conceived by Guido van
Rossum.
Guido van Rossum started python implementation at Centrum
Wiskunde & Informatica (CWI) in the Netherlands in December 1989
and released 1st version in feb 1991.
He was named after the BBC TV show Monty‘s Python Flying
Circus in late 1980’s
Python Features
1) Easy to Learn and Use
Python is easy to learn and use. It is developer-friendly and high level
programming language.
2) Expressive Language
Python language is more expressive means that it is more understandable and
readable.
3) Interpreted Language
Python is an interpreted language i.e. interpreter executes the code line by line at
a time. This makes debugging easy and thus suitable for beginners.
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.
5) Free and Open Source
Python language is freely available at official web address. The source-code is also
available. Therefore it is open source.
6) Object-Oriented programming Language
Python supports object oriented language and concepts of classes and objects come
into existence.
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.
8) Large Standard Library
Python has a large and broad library and provides rich set of module and functions for
rapid application development.
9) GUI Programming Support
Graphical user interfaces can be developed using Python.
10) Integrated
It can be easily integrated with languages like C, C++, JAVA etc.
11) Python is Portable:
Python is portable language . i.e python code run on platform such as windows,
Linux, Unix and Mac then we do not need to change it.
12) Dynamically Typed:
Python is dynamically-typed language. i.e for a variable is decided at run time not in
advance. because of this feature we don’t need to specify the type of variable.
CORE PYTHON ADVANCED PYTHON
1. HISTORY OF PYTHON 1. OOPS
2. APPLICATIONS 2. EXCEPTION HANDLING
3. USERS 3. MULTI THREADING
4. FEATURES 4. REGULAR EXPRESSIONS
5. KEYWORDS 5. GUI USING TKINTER
6. OPERATORS 6. PDBC USING MY/SQL
7. I/O STATEMENTS 7. TOWARDS DATA SCIENCE PKGS
8. FLOW CONTROL 1.NUMPY MATPLOTLIB OPENPYXL
9. STRINGS
10. LIST /TUPLE / DICTIONARY / SETS
11. FUNCTIONS
12. MODULES
13. PACKAGES
14. FILE HANDLING
Applications of Python
DESKTOP APPLICATIONS
WEB APPLICATIONS WITH DJANGO
DATABASE APPLICATIONS
NETWORK APPLICATIONS
GAMES
DATA ANALYSIS/ SCIENCE
MACHINE LEARNING DEEP LEARNING
ARTIFICIAL INTELLIGENCE
IOT
Python Users
Google
Facebook
Youtube
Dropbox
Pintrest
BBC
NASA
AT&T
New York Times
Python Supports Different paradigms
• Scripting from ‘shell / perl’
• Syntax from ‘C & ABC ‘
• Functional programming from ‘C’
• Modules from modula-3
• OOPs from C++
Python Environment
1.Interactive Mode
2.Script Mode
3.IDLE /shell
Popular IDE’s of Python
1. PyCharm
2. Jupyter notebook
3. Spyder etc..
Python Data Types
Immutable mutable
Numbers List Dictionaries Sets
Strings Tuples
int string int int int int
float multi float float float
complex line float complex complex complex
string string String String String
Python Keywords
true false None and as
assert def class continue break
else finally elif del except
global for if from import
raise try or return pass
nonlocal in not is lambda
while with yield
input / output
*. input()
*. print()
Variables
* declaration
* assignment
Python Types of operators
*. arithmetic
*. relational
*. assignment
*. logical
*. membership
*. identity
*. bitwise
Arithmetic Operators
Operators Description
// Perform Floor division(gives integer value after division)
+ To perform addition
- To perform subtraction
* To perform multiplication
/ To perform division
% To return remainder after division(Modulus)
** Perform exponent(raise to power)
Comparison Operators
Operator Description
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
== Equal to
!= Not equal to
<> Not equal to(similar to !=)
Assignment Operators
Operator Description
= Assignment
/= Divide and Assign
+= Add and assign
-= Subtract and Assign
*= Multiply and assign
%= Modulus and assign
**= Exponent and assign
//= Floor division and assign
Logical Operators
Operator Description
and Logical AND(When both conditions are true output will be true)
or Logical OR (If any one condition is true output will be true)
not Logical NOT(Compliment the condition i.e., reverse)
Identity Operators
Operator Description
is Returns true if identity of two operands are same, else false
is not Returns true if identity of two operands are not same, else false.
Membership Operators
Operator Description
in Returns true if a variable is in sequence of another variable, else
false.
not in Returns true if a variable is not in sequence of another variable, else
false.
Bitwise Operators
Control Flow Statements
1. if
2. nested if's
3. else
4. elif