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 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!
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
Vanessa Rene
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
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!
 
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!
 
Python
PythonPython
Python
Aashish Jain
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
Samir Mohanty
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Class, object and inheritance in python
Class, object and inheritance in pythonClass, object and inheritance in python
Class, object and inheritance in python
Santosh Verma
 
Python Spyder IDE | Edureka
Python Spyder IDE | EdurekaPython Spyder IDE | Edureka
Python Spyder IDE | Edureka
Edureka!
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Python final ppt
Python final pptPython final ppt
Python final ppt
Ripal Ranpara
 
Python Basics
Python BasicsPython Basics
Python Basics
tusharpanda88
 
Python PPT
Python PPTPython PPT
Python PPT
Edureka!
 
What is Python Lambda Function? Python Tutorial | Edureka
What is Python Lambda Function? Python Tutorial | EdurekaWhat is Python Lambda Function? Python Tutorial | Edureka
What is Python Lambda Function? Python Tutorial | Edureka
Edureka!
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
Siddique Ibrahim
 
File Handling Python
File Handling PythonFile Handling Python
File Handling Python
Akhil Kaushik
 
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!
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
Vanessa Rene
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
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!
 
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!
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
Samir Mohanty
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Class, object and inheritance in python
Class, object and inheritance in pythonClass, object and inheritance in python
Class, object and inheritance in python
Santosh Verma
 
Python Spyder IDE | Edureka
Python Spyder IDE | EdurekaPython Spyder IDE | Edureka
Python Spyder IDE | Edureka
Edureka!
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
Python PPT
Python PPTPython PPT
Python PPT
Edureka!
 
What is Python Lambda Function? Python Tutorial | Edureka
What is Python Lambda Function? Python Tutorial | EdurekaWhat is Python Lambda Function? Python Tutorial | Edureka
What is Python Lambda Function? Python Tutorial | Edureka
Edureka!
 
File Handling Python
File Handling PythonFile Handling Python
File Handling Python
Akhil Kaushik
 

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

python presentation.pptx
python presentation.pptxpython presentation.pptx
python presentation.pptx
NightTune44
 
1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx
krsonupandey92
 
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
 
“Python” or “CPython” is written in C/C+
“Python” or “CPython” is written in C/C+“Python” or “CPython” is written in C/C+
“Python” or “CPython” is written in C/C+
Mukeshpanigrahy1
 
Learn more about the concepts of Data Types in Python
Learn more about the concepts of Data Types in PythonLearn more about the concepts of Data Types in Python
Learn more about the concepts of Data Types in Python
PrathamKandari
 
Programming Basics.pptx
Programming Basics.pptxProgramming Basics.pptx
Programming Basics.pptx
mahendranaik18
 
Python! An Introduction
Python! An IntroductionPython! An Introduction
Python! An Introduction
Paul Bulkley-Logston
 
Python revision tour i
Python revision tour iPython revision tour i
Python revision tour i
Mr. Vikram Singh Slathia
 
Python Unit 3 - Control Flow and Functions
Python Unit 3 - Control Flow and FunctionsPython Unit 3 - Control Flow and Functions
Python Unit 3 - Control Flow and Functions
DhivyaSubramaniyam
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
AKANSHAMITTAL2K21AFI
 
Python Revision Tour.pptx class 12 python notes
Python Revision Tour.pptx class 12 python notesPython Revision Tour.pptx class 12 python notes
Python Revision Tour.pptx class 12 python notes
student164700
 
python operators.ppt
python operators.pptpython operators.ppt
python operators.ppt
ErnieAcuna
 
Py-Slides-2 (1).ppt
Py-Slides-2 (1).pptPy-Slides-2 (1).ppt
Py-Slides-2 (1).ppt
KalaiVani395886
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.ppt
TejaValmiki
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.ppt
AllanGuevarra1
 
Python
PythonPython
Python
Sangita Panchal
 
Lecture_11.pdf
Lecture_11.pdfLecture_11.pdf
Lecture_11.pdf
inboxelavarasan
 
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppthlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
PraveenaFppt
 
Python introduction
Python introductionPython introduction
Python introduction
leela rani
 
Data handling CBSE PYTHON CLASS 11
Data handling CBSE PYTHON CLASS 11Data handling CBSE PYTHON CLASS 11
Data handling CBSE PYTHON CLASS 11
chinthala Vijaya Kumar
 
python presentation.pptx
python presentation.pptxpython presentation.pptx
python presentation.pptx
NightTune44
 
1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx
krsonupandey92
 
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
 
“Python” or “CPython” is written in C/C+
“Python” or “CPython” is written in C/C+“Python” or “CPython” is written in C/C+
“Python” or “CPython” is written in C/C+
Mukeshpanigrahy1
 
Learn more about the concepts of Data Types in Python
Learn more about the concepts of Data Types in PythonLearn more about the concepts of Data Types in Python
Learn more about the concepts of Data Types in Python
PrathamKandari
 
Programming Basics.pptx
Programming Basics.pptxProgramming Basics.pptx
Programming Basics.pptx
mahendranaik18
 
Python Unit 3 - Control Flow and Functions
Python Unit 3 - Control Flow and FunctionsPython Unit 3 - Control Flow and Functions
Python Unit 3 - Control Flow and Functions
DhivyaSubramaniyam
 
Python Revision Tour.pptx class 12 python notes
Python Revision Tour.pptx class 12 python notesPython Revision Tour.pptx class 12 python notes
Python Revision Tour.pptx class 12 python notes
student164700
 
python operators.ppt
python operators.pptpython operators.ppt
python operators.ppt
ErnieAcuna
 
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppthlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
PraveenaFppt
 
Python introduction
Python introductionPython introduction
Python introduction
leela rani
 
Ad

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

Recently uploaded (20)

7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Oracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI ProfessionalOracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI Professional
VICTOR MAESTRE RAMIREZ
 
MCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
MCP vs A2A vs ACP: Choosing the Right Protocol | BluebashMCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
MCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
Bluebash
 
Introduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUEIntroduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUE
Google Developer Group On Campus European Universities in Egypt
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
DevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical PodcastDevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical Podcast
Chris Wahl
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptxISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
AyilurRamnath1
 
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Infrassist Technologies Pvt. Ltd.
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy SurveyTrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Data Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any ApplicationData Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any Application
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Oracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI ProfessionalOracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI Professional
VICTOR MAESTRE RAMIREZ
 
MCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
MCP vs A2A vs ACP: Choosing the Right Protocol | BluebashMCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
MCP vs A2A vs ACP: Choosing the Right Protocol | Bluebash
Bluebash
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
DevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical PodcastDevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical Podcast
Chris Wahl
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptxISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
AyilurRamnath1
 
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Infrassist Technologies Pvt. Ltd.
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy SurveyTrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Data Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any ApplicationData Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any Application
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 

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