SlideShare a Scribd company logo
codinglaugh
l e a r n s o m e t h i n g
e v e r y d a y
Marjuk Ahmed Siddiki
Computer Science and Engineering
Python was conceived in the late 1980s
Implementation began in December 1989
First released on February 20, 1991
Python Programming Language
Guido van
Rossum
31 January 1956 (age
64)
He is currently leading the development of
Python. He has been honored as the lifelong
director of Python.
 interpreted
 high-level
 Object-oriented
 Structured
Web application:
 Django
 Flask
 Falcon
GUI:
 PyOt
 Tkinter
 Kivy
Data Science, Machine Learning and
Image processing:
 Scikit-learn
 Pandas
 Numpy
“Monty Python’s Flying Circus”
Version of Python Programming Language
Python
1.X
2.X
3.X
First Release (1.0) – January 1994
Last Release (1.6) – September 2000
First Release (0.9.0) – February 1991
First Release (2.0) – October 2000
Last Release (2.7.18) – April 2020
First Release (3.0) – December 2008
Last Release (3.8.5) – July 2020
Data collected date: 08/08/2020
Python 2.X vs 3.X
2.X 3.X
Division – integer or
decimal no
Division – decimal no
Comprehension – change
value
print(“ ”) or print “
”
print(“ ”)
Comprehension – not
change value
Not compatible - libraries Compatible - libraries
ASCII Code Unicode
IDE – Integrated Development Environment
Compiler
Auto
Completion
Syntax
Highlight
Debugger
Code
Editor
Python
IDE
Online Compiler
Python
IDE
print() - function
Object, no limitation.
Value
01
Separate between values and string inserted
between values. [Default = Space]
Sep
02
String appended after the last value.
[Default = new line]
End
03
Output of files data as a read or write.
[Default = sys.stdout]
File
04
Handle file buffering.
[Default = False]
Flush
05
print()
Output
print() - multiple arguments
Pass values as parameters
01
Use string formatting
02
Pass values as a tuple
03
Sequential formatting pass value
2.1
Formatting the number
2.2
Formatting with explicit names
2.3
Pass values as a dictionary
04
print()
Output
Variable
Rules for variables
cannot start with a number
2
alpha-numeric characters and underscores
(a-z), (A-Z), (0-9), ( _ )
3
case-sensitive
4
start with a letter or the underscore
1
Variable Assign Value
Declare value in single variable
1
Different values to multiple variables in one line
4
Same value to multiple variables in one line
5
Different values to one variable
2
Concatenate variables
3
Global Variables Local Variables
Delete a variable
6
input() - function
Typecasting the input
4
Multiple inputs in one line
5
Gets a string from the user
3
Input type → keyboard, mouse or touch
1
Prompt → display message
2
Keyword
Ternary
Operator
Operators
Arithmetic
Operators
Identity
Operators
Logical
Operators
Assignment
Operators
Membership
Operators
Comparison
Operators
Bitwise
Operators
Arithmetic Operators
Addition (+)
1
Division – float (/)
4
Division – floor (//)
5
Subtraction (-)
2
Multiplication (*)
3
Modulus (%)
6
Power (**)
7
Comparison / Relation Operators
Equal (==)
1
Less than (<)
4
Greater than or
equal to (>=)
5
Not Equal (!=)
2
Greater than (>)
3
Less than or
equal to (<=)
6
Logical Operators
AND (and)
1
OR (or)
2
NOT (not)
3
Membership Operators
in
1
not in
2
Identity Operators
is
1
is not
2
n = 5
000011
m = 5
Bitwise Operators
Bitwise AND (&)
1
Bitwise XOR (^)
4
Bitwise Right Shift (>>)
5
Bitwise OR ( | )
2
Bitwise NOT (~)
3
Bitwise Left Shift (<<)
6
Assignment Operators
Assigns value (=)
1
Multiply Equal (*=)
4
Modulus Equal (%=)
7
Add Equal (+=)
2
Subtract Equal (-=)
3
Exponent Equal (**=)
8
Floor Division Equal (//=)
6
Divide Equal (/=)
5
Bitwise OR Equal (|=)
10
Bitwise AND Equal (&=)
9
Bitwise Right Shift Equal (>>=)
12
Bitwise XOR Equal (^=)
11
Bitwise Left Shift Equal (>>=)
13
Home Work (assignment operators)
Bitwise OR Equal (|=)
10
Bitwise AND Equal (&=)
9
Bitwise Right Shift Equal (>>=)
12
Bitwise XOR Equal (^=)
11
Bitwise Left Shift Equal (>>=)
13
A = 30
B = 13
Ternary Operators
Flow Control / Decision Making
if
1
else
2
elif
3
Nested if
4
while loop
5
continue
7
break
8
pass
9
for loop
6
Symbols Used In Flowchart
flow line
start/stop
input/output
processing
decision
If - statement
#------code------
if condition:
#condition is true
#write your code
#------code------
condition
Code after
statement
Body of if
statement
tru
e
fals
e
else - statement
#------code------
if condition:
#condition is true
#write your code
else:
#condition is false
#write your code
#------code------
condition
Code after
statement
Body of if
statement
tru
e
fals
e
Body of else
statement
elif / multiple - statement
#------code------
if condition:
#condition is true
#write your code
elif condition:
#condition is true
#write your code
else:
#condition is false
#write your code
#------code------
condition
Code after
statement
Body of if
statement
tru
e
fals
e
Body of elif
statement
Body of else
statement
condition
tru
e
fals
e
Nested if - statement
condition
Code after
statement
Body of else
statement
fals
e
tru
e
Body of else
statement
Body of if
statement
condition
fals
e
tru
e
#------code------
if condition:
#condition is true
#write your code
if condition:
#condition is true
#write your code
else:
#condition is false
#write your code
else:
#condition is false
#write your code
#------code------
Loop
while
1
for
2
While - loop
#------code------
while condition:
#condition is true
#write your code
#------code------
condition
Code after
statement
tru
e
fals
e
Infinite loop
1
Nested loop
2
Else block
3
Body of while
statement
for - loop
#------code------
for variable in sequence:
#item reached
#write your code
#------code------
Last item
Reached
?
Code after
statement
tru
e
fals
e
range()
1
Nested loop
2
Else block
3
Body of for
statement
break – continue – pass
if – elif – else
1
while loop
2
for loop
3
Data Types
None
Number
String
List
Tuple
Set
Dictionary
Boolean
None
Boolean
true
1
false
2
Number
int
1
float
2
complex
3
String
Multi-line
1
Positive index
2
Negative index
3
Range / Slice
4
Change
5
Delete
6
length
8
Membership
9
Concatenation
10
Repetition
11
Relation Operators
12
String Format
13
Loop
7
String - method
capitalize()
1
casefold()
4
lower()
5
join()
6
endswith()
20
startswith()
21
find()
7
rfind()
8
center()
9
ljust()
10
rjust()
11
count()
12
strip()
13
lstrip()
14
rstrip()
15
partition()
18
replace()
23
isnumeric()
27
isalpha()
30
isalnum()
31
isdigit()
28
split()
16
isdecimal()
29
isspace()
32
istitle()
25
isupper()
26
swapcase()
19
title()
2
upper()
3
zfill()
22
islower()
24
splitlines()
17
String - method
maketrans()
1
translate()
2
List
Nested List
2
Positive index
3
Negative index
4
Range / Slice
5
Add / Insert
6
Loop
9
Length
10
Membership
11
Repetition
12
Copy list
13
Constructor
1 Delete
8
Change
7 Concatenation
14
List - method
extend()
2
insert()
3
remove()
4
pop()
5
clear()
6
copy()
9
reverse()
10
sort()
11
sorted()
12
max()
13
append()
1 count()
8
index()
7 min()
14
enumerate()
16
reduce()
17
filter()
18
map()
19
lambda()
20
sum()
15
Tuple
Constructor
1
Tuple magic
2
Nested tuple
3
Positive index
4
Negative index
5
Range / Slice
6
Add / Change / Delete
7
Loop
8
Membership
9
Repetition
10
Concatenation
11
Tuple - Method
len()
1
max()
2
min()
3
sum()
4
sorted()
6
count()
7
index()
5
Dictionary
String key
1
Int key
2
Mixed key
3
Constructor
4
Nested dictionary
6
Pair
5
Accessing
Values
7
Add value
8
Change value
9
Delete value
10
Loop
12
Copy dictionary
11
Membership
13
Dictionary - method
get()
1
pop()
2
popitem()
3
clear()
4
keys()
6
copy()
5
values()
7
items()
8
update()
9
fromkeys()
10
len()
12
setdefault()
11
sorted()
13
Set
Constructor
1
Loop / Access Values
2
Add
3
Delete
4
Union
6
Join
5
Intersection
7
Difference
8
Symmetric Difference
9
Frozenset
10
Set - Method
add()
1
update()
2
pop()
3
remove()
4
discard()
6
clear()
5
union()
7
intersection()
8
intersection_update()
9
difference()
10
symmetric_difference()
12
difference_update()
11
symmetric_difference_
update()
13
isdisjoint()
21
issubset()
19
issuperset()
20
len()
15
min()
17
max()
16
sorted()
18
sum()
14
Function
Arguments
2
Parameters
3
*args
4
Keyword arguments
5
**kwargs
6
Instead of return
9
Recursion
10
Return
1
Pass
8
Default parameter
7
Function
Global variable
2
Local variable
3
Nonlocal variable
4
Nested Function
1
Lambda (anonymous function)
lambda arguments : expression
Modules
User define modules
Built-in modules

More Related Content

PDF
Python 3 - Tutorialspoint Full Cource Book.pdf
PPTX
Python in 30 minutes!
PDF
Chapter 0 Python Overview (Python Programming Lecture)
PPTX
Programming
PPTX
Python and its applications
PPTX
Programming in Python
PPT
Introduction to python
PPTX
Python ppt
Python 3 - Tutorialspoint Full Cource Book.pdf
Python in 30 minutes!
Chapter 0 Python Overview (Python Programming Lecture)
Programming
Python and its applications
Programming in Python
Introduction to python
Python ppt

Similar to Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) || codinglaugh (20)

PPTX
Programming with python
PDF
Introduction To Programming with Python
PPTX
made it easy: python quick reference for beginners
PPTX
Python
PPT
python fundamental for beginner course .ppt
PPTX
Python4HPC.pptx
PPTX
Python Basics by Akanksha Bali
PPT
Python programming
PPTX
Python-Certification-Training-Day-1-2.pptx
PDF
python notes.pdf
PDF
pythonQuick.pdf
PDF
python 34💭.pdf
PPTX
Python
PPTX
Python programing
PDF
Introduction to python
PPTX
Python Basics
PPTX
lecture 2.pptx
PDF
Introduction to Python Programming | InsideAIML
ODP
Introduction to Python - Training for Kids
PPTX
Building arcade game using python workshop
Programming with python
Introduction To Programming with Python
made it easy: python quick reference for beginners
Python
python fundamental for beginner course .ppt
Python4HPC.pptx
Python Basics by Akanksha Bali
Python programming
Python-Certification-Training-Day-1-2.pptx
python notes.pdf
pythonQuick.pdf
python 34💭.pdf
Python
Python programing
Introduction to python
Python Basics
lecture 2.pptx
Introduction to Python Programming | InsideAIML
Introduction to Python - Training for Kids
Building arcade game using python workshop
Ad

More from Marjuk Ahmed Siddiki (6)

PPTX
Rgb and-cmy-color-model
PDF
Farm House - Java Project
PPTX
Discrete Mathematics - Trees
PPTX
Internet of Things (IoT)
PPTX
Statistics and Probability - all in one
PPTX
Bio Informatics - Genome Assembly
Rgb and-cmy-color-model
Farm House - Java Project
Discrete Mathematics - Trees
Internet of Things (IoT)
Statistics and Probability - all in one
Bio Informatics - Genome Assembly
Ad

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Insiders guide to clinical Medicine.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
2.FourierTransform-ShortQuestionswithAnswers.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Classroom Observation Tools for Teachers
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
Pharma ospi slides which help in ospi learning
Supply Chain Operations Speaking Notes -ICLT Program
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Week 4 Term 3 Study Techniques revisited.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
TR - Agricultural Crops Production NC III.pdf
Complications of Minimal Access Surgery at WLH
Insiders guide to clinical Medicine.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
VCE English Exam - Section C Student Revision Booklet
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study

Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) || codinglaugh