SlideShare a Scribd company logo
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Programming
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
➢ Install Python
➢ Install PyCharm - IDE for Python
➢ Python Programming
▪ Variables
▪ Data types
▪ Operators
▪ Conditional Statements
▪ Loops
▪ Functions
▪ Classes and Objects
➢ Summary
Agenda
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Installation
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Pycharm Installation
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables
Data types
Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Variable
C=‘edureka’
A = 16
B = 20
C = ‘edureka’
B=20
A=16 Memory
Memory
Memory
Variable
Variables are nothing but reserved memory locations to store values. This means that when you
create a variable you reserve some space in memory.
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables
Data types
Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Data types
Python Data types
A data type, in programming, is a classification that specifies which type of value a variable has and what
type of mathematical, relational or logical operations can be applied to it without causing an error.
C=‘edureka’
A = 16
B = 20
C = ‘edureka’
B=20
A=16 Integer
Datatype
Integer
Datatype
String
Datatype
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Data types
Data types
Numeric
List
Tuple
Strings
Set
Dictionary
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Tuples
Strings
Set
Dictionary
Numeric1
3
4
5
6
Lists32
Numeric Data type
 Number data types are used to store numeric values.
 There are four different numerical types in Python:
A = 16
B = 1.678
C = 2 + i6
D = 909065*35353537
Integer Type
Float Type
Complex Type
Long Type
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Tuples
Strings
Set
Dictionary
Numeric1
3
4
5
6
Lists22
List Data type
The list is a most versatile datatype available in Python which can be written as a list of
comma-separated values (items) between square brackets
list1 = ['physics', 'chemistry', 1997, 2000]For example:
Accessing Values in Lists
Updating List
Delete List Elements
List Length
Concatenation
Repetition
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Tuples Data type
Tuples
Strings
Set
Dictionary
Numeric1
3
4
5
6
Tuples23
Lists32
A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists.
Tup1 = ('physics', 'chemistry', 1997, 2000)For example:
Accessing Values in Tuple
Updating Tuple
Delete Tuple Elements
Tuple Length
Concatenation
Repetition
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
String Data type
Strings
Set
Dictionary
Numeric1
4
5
6
Lists32
Strings24
Tuples3
A string in Python is a sequence of characters. We can create Strings by enclosing
characters in quotes. Python treats single quotes the same as double quotes. Consider
the example below:
Operation Syntax
String Length print(len(string_name))
Locate a character in string print(strig_name.index(“Char"))
Count the number of times a character is
repeated in a string
print(string_name.count("Char"))
Print a part of the string print(string_name[start:stop])
Reverse a string print(string_name[::-1])
Convert the letters in a string to upper-case print(string_name.upper())
Convert the letters in a string to lower-case print(string_name.lower())
A = ‘Master Python At edureka’
B = ‘Welcome to edureka!’
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Set Data type
Set
Dictionary
Numeric1
5
6
Lists32
Tuples3
Strings4 Set25
Strings4
Set is an unordered collection of unique items. Set is defined by
values separated by comma inside braces { }.
For Example:
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Dictionary Data type
Dictionary
Numeric1
6
Lists32
Tuples3
Strings4
Set5 Strings4 Dictionary26
Set5
Dictionary is an unordered collection of key-value pairs. It is
generally used when we have a huge amount of data.
For Example:
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables
Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
Data types
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Operations
Operators
Identity
Operators
Membership
Operators
Comparison
Operators
Arithmetic
Operators
Assignment
Operators
Logical
Operators
Bitwise
Operators
Operations Operators are the constructs which can manipulate the value of operands.
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Arithmetic and Comparison Operators
Arithmetic Comparison
a + b
a – b
a * b
a / b
a % b
a ** b
Addition
Multiplication
Subtraction
Division
Modulus
Exponent
a == b
a != b
a > b
a < b
a >= b
a <= b
Equal To
Greater Than
Not Equal To
Less Than
Greater Than Equal To
Less Than Equal To
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Assignment and identity Operator
Assignment
a = b
a + = b
a - = b
a * = b
a /= b
a** = b
Assigns value from right to left
a = a - b
a = a + b
a = a*b
a = a/b
a = a**b
Identity
is
is not
Evaluates to true if the variables on
either side of the operator point to
the same object and false
otherwise.
Evaluates to false if the variables on
either side of the operator point to
the same object and true otherwise.
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Membership and Bitwise Operator
Membership
in
not in
Evaluates to true if it finds a
variable in the specified
sequence and false otherwise.
Evaluates to true if it does not
find a variable in the specified
sequence and false otherwise.
Bitwise
a & b
a | b
a ^ b
a ~ b
a <<
a >> b
Binary AND
Binary OR
Binary XOR
Binary NOT
Binary Left Shift
Binary Right Shift
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Logical Operator
There are three types of logical operators: Logical AND, Logical NOT, Logical OR
a and b
a or b
Returns a if a is false, b otherwise
Returns b if b is false, a otherwise
not a Returns True if a is True, False otherwise
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
Data types
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Conditional Statements in Python
If Statement
Syntax:
If code
End
Start
Condition
is true
Condition
Condition
is false
Exit
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Conditional Statements in Python
Elif Statement
If code
End
Start
Condition
is true
Condition
If condition is
false
Elif codeSyntax:
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Conditional Statements in Python
Else code If code
Elif condition
is false
If condition
is true
Elif code
If condition is
false
Condition
End
StartElse Statement
Syntax:
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
Data types
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Loops in Python
A loop statement allows us to execute a statement or group of statements multiple
times. The following diagram illustrates a loop statement:Loops
Loops
NestedForWhile
Start
Conditional Code
Condition
If condition is
false
If condition is
true
End
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
While Loop
While Loop
Repeats a statement or group of statements while a given condition is TRUE. It tests
the condition before executing the loop body.
Syntax:
Start
Conditional Code
End
If condition
is true
If condition
is false
Condition
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
For Loop
For Loop
Repeats a statement or group of statements while a given condition is TRUE. It tests
the condition before executing the loop body.
Syntax:
Start
Execute Statement (s)
End
Next item from
sequence
If no more items in the
sequenceItem from
sequence
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Nested Loops in Python
Nested Loops
Python programming language allows use of one loop inside another
loop. This is called Nested Loop, below is the syntax for the same:
Syntax: Syntax:
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
Data types
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Functions in Python
Functions
A function is a block of organized, reusable code that is used to perform a single,
related action.
Functions
Predefined
Functions
User Defined
Functions
Function
Add
Call (3,5)
Call (6,9)
Call (1,5)
Call 1
Call 2
Call 3
Return 8
Return 15
Return 6
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Variables Operators
Conditional
Statements
Loops
Functions
Classes and
Objects
Data types
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Classes and Objects in Python
Classes and Objects
 A class is the blueprint from which specific objects are created.
 Anything that has a state and behavior is object.
Class
Object
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Session In A Minute
Install Python Variables, Data types, Operators
Loops Functions
Conditional Statements
Classes and Objects
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Thank You …
Questions/Queries/Feedback

More Related Content

What's hot

Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
Nowell Strite
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | EdurekaPython Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
Python basic
Python basicPython basic
Python basic
Saifuddin Kaijar
 
Python Basics
Python BasicsPython Basics
Python Basics
tusharpanda88
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
KrishnaMildain
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
Rasan Samarasinghe
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
Swarit Wadhe
 
Python programming
Python programmingPython programming
Python programming
Prof. Dr. K. Adisesha
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02
Fariz Darari
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
william john
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Agung Wahyudi
 

What's hot (20)

Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | EdurekaPython Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
 
Python basic
Python basicPython basic
Python basic
 
Python Basics
Python BasicsPython Basics
Python Basics
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Python programming
Python programmingPython programming
Python programming
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 

Similar to Python Programming | Python Programming For Beginners | Python Tutorial | Edureka

R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
Edureka!
 
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Edureka!
 
Python Interview Questions And Answers 2019 | Edureka
Python Interview Questions And Answers 2019 | EdurekaPython Interview Questions And Answers 2019 | Edureka
Python Interview Questions And Answers 2019 | Edureka
Edureka!
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Edureka!
 
3-Module - Basic Python jUST _ aUTOMATE.pptx.pdf
3-Module - Basic Python  jUST _ aUTOMATE.pptx.pdf3-Module - Basic Python  jUST _ aUTOMATE.pptx.pdf
3-Module - Basic Python jUST _ aUTOMATE.pptx.pdf
RajeevPramanik1
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Tutorial | Python Tutorial for Beginners | Python Training | EdurekaPython Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
1_1_python-course-notes-sections-1-7.pdf
1_1_python-course-notes-sections-1-7.pdf1_1_python-course-notes-sections-1-7.pdf
1_1_python-course-notes-sections-1-7.pdf
Javier Crisostomo
 
Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on Session
Dharmesh Tank
 
Python basics
Python basicsPython basics
Python basics
TIB Academy
 
010 CONDITION USING IF-converted.pptx
010 CONDITION USING IF-converted.pptx010 CONDITION USING IF-converted.pptx
010 CONDITION USING IF-converted.pptx
SSPTRGCELL
 
Reinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | EdurekaReinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | Edureka
Edureka!
 
UNIT II_python Programming_aditya College
UNIT II_python Programming_aditya CollegeUNIT II_python Programming_aditya College
UNIT II_python Programming_aditya College
Ramanamurthy Banda
 
What is Range Function? | Range in Python Explained | Edureka
What is Range Function? | Range in Python Explained | EdurekaWhat is Range Function? | Range in Python Explained | Edureka
What is Range Function? | Range in Python Explained | Edureka
Edureka!
 
C# language basics (Visual Studio)
C# language basics (Visual Studio) C# language basics (Visual Studio)
C# language basics (Visual Studio)
rnkhan
 
C# language basics (Visual studio)
C# language basics (Visual studio)C# language basics (Visual studio)
C# language basics (Visual studio)
rnkhan
 
modul-python-all.pptx
modul-python-all.pptxmodul-python-all.pptx
modul-python-all.pptx
Yusuf Ayuba
 
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | EdurekaJava Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Edureka!
 
Python for Traders - Introduction to Python for Trading
Python for Traders - Introduction to Python for TradingPython for Traders - Introduction to Python for Trading
Python for Traders - Introduction to Python for Trading
Marketcalls
 

Similar to Python Programming | Python Programming For Beginners | Python Tutorial | Edureka (20)

R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
 
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
 
Python Interview Questions And Answers 2019 | Edureka
Python Interview Questions And Answers 2019 | EdurekaPython Interview Questions And Answers 2019 | Edureka
Python Interview Questions And Answers 2019 | Edureka
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
 
3-Module - Basic Python jUST _ aUTOMATE.pptx.pdf
3-Module - Basic Python  jUST _ aUTOMATE.pptx.pdf3-Module - Basic Python  jUST _ aUTOMATE.pptx.pdf
3-Module - Basic Python jUST _ aUTOMATE.pptx.pdf
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Tutorial | Python Tutorial for Beginners | Python Training | EdurekaPython Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
 
1_1_python-course-notes-sections-1-7.pdf
1_1_python-course-notes-sections-1-7.pdf1_1_python-course-notes-sections-1-7.pdf
1_1_python-course-notes-sections-1-7.pdf
 
Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on Session
 
Python basics
Python basicsPython basics
Python basics
 
010 CONDITION USING IF-converted.pptx
010 CONDITION USING IF-converted.pptx010 CONDITION USING IF-converted.pptx
010 CONDITION USING IF-converted.pptx
 
Reinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | EdurekaReinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | Edureka
 
UNIT II_python Programming_aditya College
UNIT II_python Programming_aditya CollegeUNIT II_python Programming_aditya College
UNIT II_python Programming_aditya College
 
What is Range Function? | Range in Python Explained | Edureka
What is Range Function? | Range in Python Explained | EdurekaWhat is Range Function? | Range in Python Explained | Edureka
What is Range Function? | Range in Python Explained | Edureka
 
C# language basics (Visual Studio)
C# language basics (Visual Studio) C# language basics (Visual Studio)
C# language basics (Visual Studio)
 
C# language basics (Visual studio)
C# language basics (Visual studio)C# language basics (Visual studio)
C# language basics (Visual studio)
 
modul-python-all.pptx
modul-python-all.pptxmodul-python-all.pptx
modul-python-all.pptx
 
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | EdurekaJava Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
 
Python session3
Python session3Python session3
Python session3
 
Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
 
Python for Traders - Introduction to Python for Trading
Python for Traders - Introduction to Python for TradingPython for Traders - Introduction to Python for Trading
Python for Traders - Introduction to Python for Trading
 

More from Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | EdurekaITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
Edureka!
 

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | EdurekaITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
 

Recently uploaded

GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 

Recently uploaded (20)

GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 

Python Programming | Python Programming For Beginners | Python Tutorial | Edureka

  • 2. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING ➢ Install Python ➢ Install PyCharm - IDE for Python ➢ Python Programming ▪ Variables ▪ Data types ▪ Operators ▪ Conditional Statements ▪ Loops ▪ Functions ▪ Classes and Objects ➢ Summary Agenda
  • 5. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Data types Operators Conditional Statements Loops Functions Classes and Objects
  • 6. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Python Variable C=‘edureka’ A = 16 B = 20 C = ‘edureka’ B=20 A=16 Memory Memory Memory Variable Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
  • 7. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Data types Operators Conditional Statements Loops Functions Classes and Objects
  • 8. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Data types Python Data types A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. C=‘edureka’ A = 16 B = 20 C = ‘edureka’ B=20 A=16 Integer Datatype Integer Datatype String Datatype
  • 9. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Python Data types Data types Numeric List Tuple Strings Set Dictionary
  • 10. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Tuples Strings Set Dictionary Numeric1 3 4 5 6 Lists32 Numeric Data type  Number data types are used to store numeric values.  There are four different numerical types in Python: A = 16 B = 1.678 C = 2 + i6 D = 909065*35353537 Integer Type Float Type Complex Type Long Type
  • 11. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Tuples Strings Set Dictionary Numeric1 3 4 5 6 Lists22 List Data type The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets list1 = ['physics', 'chemistry', 1997, 2000]For example: Accessing Values in Lists Updating List Delete List Elements List Length Concatenation Repetition
  • 12. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Tuples Data type Tuples Strings Set Dictionary Numeric1 3 4 5 6 Tuples23 Lists32 A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. Tup1 = ('physics', 'chemistry', 1997, 2000)For example: Accessing Values in Tuple Updating Tuple Delete Tuple Elements Tuple Length Concatenation Repetition
  • 13. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING String Data type Strings Set Dictionary Numeric1 4 5 6 Lists32 Strings24 Tuples3 A string in Python is a sequence of characters. We can create Strings by enclosing characters in quotes. Python treats single quotes the same as double quotes. Consider the example below: Operation Syntax String Length print(len(string_name)) Locate a character in string print(strig_name.index(“Char")) Count the number of times a character is repeated in a string print(string_name.count("Char")) Print a part of the string print(string_name[start:stop]) Reverse a string print(string_name[::-1]) Convert the letters in a string to upper-case print(string_name.upper()) Convert the letters in a string to lower-case print(string_name.lower()) A = ‘Master Python At edureka’ B = ‘Welcome to edureka!’
  • 14. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Set Data type Set Dictionary Numeric1 5 6 Lists32 Tuples3 Strings4 Set25 Strings4 Set is an unordered collection of unique items. Set is defined by values separated by comma inside braces { }. For Example:
  • 15. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Dictionary Data type Dictionary Numeric1 6 Lists32 Tuples3 Strings4 Set5 Strings4 Dictionary26 Set5 Dictionary is an unordered collection of key-value pairs. It is generally used when we have a huge amount of data. For Example:
  • 16. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Operators Conditional Statements Loops Functions Classes and Objects Data types
  • 17. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Python Operations Operators Identity Operators Membership Operators Comparison Operators Arithmetic Operators Assignment Operators Logical Operators Bitwise Operators Operations Operators are the constructs which can manipulate the value of operands.
  • 18. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Arithmetic and Comparison Operators Arithmetic Comparison a + b a – b a * b a / b a % b a ** b Addition Multiplication Subtraction Division Modulus Exponent a == b a != b a > b a < b a >= b a <= b Equal To Greater Than Not Equal To Less Than Greater Than Equal To Less Than Equal To
  • 19. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Assignment and identity Operator Assignment a = b a + = b a - = b a * = b a /= b a** = b Assigns value from right to left a = a - b a = a + b a = a*b a = a/b a = a**b Identity is is not Evaluates to true if the variables on either side of the operator point to the same object and false otherwise. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise.
  • 20. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Membership and Bitwise Operator Membership in not in Evaluates to true if it finds a variable in the specified sequence and false otherwise. Evaluates to true if it does not find a variable in the specified sequence and false otherwise. Bitwise a & b a | b a ^ b a ~ b a << a >> b Binary AND Binary OR Binary XOR Binary NOT Binary Left Shift Binary Right Shift
  • 21. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Logical Operator There are three types of logical operators: Logical AND, Logical NOT, Logical OR a and b a or b Returns a if a is false, b otherwise Returns b if b is false, a otherwise not a Returns True if a is True, False otherwise
  • 22. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Operators Conditional Statements Loops Functions Classes and Objects Data types
  • 23. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Conditional Statements in Python If Statement Syntax: If code End Start Condition is true Condition Condition is false Exit
  • 24. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Conditional Statements in Python Elif Statement If code End Start Condition is true Condition If condition is false Elif codeSyntax:
  • 25. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Conditional Statements in Python Else code If code Elif condition is false If condition is true Elif code If condition is false Condition End StartElse Statement Syntax:
  • 26. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Operators Conditional Statements Loops Functions Classes and Objects Data types
  • 27. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Loops in Python A loop statement allows us to execute a statement or group of statements multiple times. The following diagram illustrates a loop statement:Loops Loops NestedForWhile Start Conditional Code Condition If condition is false If condition is true End
  • 28. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING While Loop While Loop Repeats a statement or group of statements while a given condition is TRUE. It tests the condition before executing the loop body. Syntax: Start Conditional Code End If condition is true If condition is false Condition
  • 29. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING For Loop For Loop Repeats a statement or group of statements while a given condition is TRUE. It tests the condition before executing the loop body. Syntax: Start Execute Statement (s) End Next item from sequence If no more items in the sequenceItem from sequence
  • 30. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Nested Loops in Python Nested Loops Python programming language allows use of one loop inside another loop. This is called Nested Loop, below is the syntax for the same: Syntax: Syntax:
  • 31. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Operators Conditional Statements Loops Functions Classes and Objects Data types
  • 32. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Functions in Python Functions A function is a block of organized, reusable code that is used to perform a single, related action. Functions Predefined Functions User Defined Functions Function Add Call (3,5) Call (6,9) Call (1,5) Call 1 Call 2 Call 3 Return 8 Return 15 Return 6
  • 33. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Variables Operators Conditional Statements Loops Functions Classes and Objects Data types
  • 34. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Classes and Objects in Python Classes and Objects  A class is the blueprint from which specific objects are created.  Anything that has a state and behavior is object. Class Object
  • 35. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Session In A Minute Install Python Variables, Data types, Operators Loops Functions Conditional Statements Classes and Objects
  • 36. www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING Thank You … Questions/Queries/Feedback