Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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 (20)

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!
 
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Edureka!
 
05 python.pdf
05 python.pdf05 python.pdf
05 python.pdf
SugumarSarDurai
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
Edureka!
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
ParrotAI
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Python: Modules and Packages
Python: Modules and PackagesPython: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Python interview questions
Python interview questionsPython interview questions
Python interview questions
Pragati Singh
 
Top 100 Python Interview Questions And Answers
Top 100 Python Interview Questions And AnswersTop 100 Python Interview Questions And Answers
Top 100 Python Interview Questions And Answers
ProBytes
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Python
PythonPython
Python
Gagandeep Nanda
 
Selenium IDE LOCATORS
Selenium IDE LOCATORSSelenium IDE LOCATORS
Selenium IDE LOCATORS
Mindfire Solutions
 
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!
 
Introduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful SoupIntroduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
How to download and install Python - lesson 2
How to download and install Python - lesson 2How to download and install Python - lesson 2
How to download and install Python - lesson 2
Shohel Rana
 
Top Libraries for Machine Learning with Python
Top Libraries for Machine Learning with Python Top Libraries for Machine Learning with Python
Top Libraries for Machine Learning with Python
Chariza Pladin
 
Python final ppt
Python final pptPython final ppt
Python final ppt
Ripal Ranpara
 
Report on web development
Report on web developmentReport on web development
Report on web development
AJEETKUMAR932614
 
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!
 
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Edureka!
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
Edureka!
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
ParrotAI
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Python: Modules and Packages
Python: Modules and PackagesPython: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Python interview questions
Python interview questionsPython interview questions
Python interview questions
Pragati Singh
 
Top 100 Python Interview Questions And Answers
Top 100 Python Interview Questions And AnswersTop 100 Python Interview Questions And Answers
Top 100 Python Interview Questions And Answers
ProBytes
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
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!
 
Introduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful SoupIntroduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
How to download and install Python - lesson 2
How to download and install Python - lesson 2How to download and install Python - lesson 2
How to download and install Python - lesson 2
Shohel Rana
 
Top Libraries for Machine Learning with Python
Top Libraries for Machine Learning with Python Top Libraries for Machine Learning with Python
Top Libraries for Machine Learning with Python
Chariza Pladin
 

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 ...
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!
 
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
 
Variables & Data Types In Python | Edureka
Variables & Data Types In Python | EdurekaVariables & Data Types In Python | Edureka
Variables & Data Types In Python | Edureka
Edureka!
 
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
 
Lhahahhahahhahhhahahhajjsaaecture 6.pptx
Lhahahhahahhahhhahahhajjsaaecture 6.pptxLhahahhahahhahhhahahhajjsaaecture 6.pptx
Lhahahhahahhahhhahahhajjsaaecture 6.pptx
GiancarlosGumatay
 
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 session3
Python session3Python session3
Python session3
Aswin Krishnamoorthy
 
Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
Chui-Wen Chiu
 
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
 
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!
 
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
 
Variables & Data Types In Python | Edureka
Variables & Data Types In Python | EdurekaVariables & Data Types In Python | Edureka
Variables & Data Types In Python | Edureka
Edureka!
 
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
 
Lhahahhahahhahhhahahhajjsaaecture 6.pptx
Lhahahhahahhahhhahahhajjsaaecture 6.pptxLhahahhahahhahhhahahhajjsaaecture 6.pptx
Lhahahhahahhahhhahahhajjsaaecture 6.pptx
GiancarlosGumatay
 
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
 

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
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!
 
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!
 

Recently uploaded (20)

Kualitatem’s Cybersecurity Risk Assessment
Kualitatem’s Cybersecurity Risk AssessmentKualitatem’s Cybersecurity Risk Assessment
Kualitatem’s Cybersecurity Risk Assessment
Kualitatem Inc
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
BrainSell Technologies
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENTICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
falakzehra17
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
End-to-end process automation: Simplifying SAP master data with low-code/no-c...
End-to-end process automation: Simplifying SAP master data with low-code/no-c...End-to-end process automation: Simplifying SAP master data with low-code/no-c...
End-to-end process automation: Simplifying SAP master data with low-code/no-c...
Precisely
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Building Resilience with Energy Management for the Public Sector
Building Resilience with Energy Management for the Public SectorBuilding Resilience with Energy Management for the Public Sector
Building Resilience with Energy Management for the Public Sector
Splunk
 
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptxEIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
Earley Information Science
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
ScyllaDB
 
AI in Web Development – A Complete Guide.pdf
AI in Web Development – A Complete Guide.pdfAI in Web Development – A Complete Guide.pdf
AI in Web Development – A Complete Guide.pdf
Vrinsoft Technology
 
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
François
 
Kualitatem’s Cybersecurity Risk Assessment
Kualitatem’s Cybersecurity Risk AssessmentKualitatem’s Cybersecurity Risk Assessment
Kualitatem’s Cybersecurity Risk Assessment
Kualitatem Inc
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
BrainSell Technologies
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENTICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
ICT IS FOR LIFE-LONG LEARNING AND TEACHER PROFESSIONAL DEVELOPMENT
falakzehra17
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
End-to-end process automation: Simplifying SAP master data with low-code/no-c...
End-to-end process automation: Simplifying SAP master data with low-code/no-c...End-to-end process automation: Simplifying SAP master data with low-code/no-c...
End-to-end process automation: Simplifying SAP master data with low-code/no-c...
Precisely
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Building Resilience with Energy Management for the Public Sector
Building Resilience with Energy Management for the Public SectorBuilding Resilience with Energy Management for the Public Sector
Building Resilience with Energy Management for the Public Sector
Splunk
 
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptxEIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
EIS-Manufacturing-AI–Product-Data-Optimization-Webinar-2025.pptx
Earley Information Science
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
ScyllaDB
 
AI in Web Development – A Complete Guide.pdf
AI in Web Development – A Complete Guide.pdfAI in Web Development – A Complete Guide.pdf
AI in Web Development – A Complete Guide.pdf
Vrinsoft Technology
 
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
A Journey to Continuous Delivery with Flutter ⚡️🚀🙂 (@FlutterHeroes 2025)
François
 

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