SlideShare a Scribd company logo
PYTHON CERTIFICATION TRAINING www.edureka.co/python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
01 IntroductionTo Python
02 Applications of Python
03 Variable Declaration
04 Variable Data Types
05 Type Conversion
Topics For Today’s Discussion
Introduction to
python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
Python is a high-level interpreted, Object oriented programming language, popular for its readability and
clear syntax.
Procedure
Oriented
Object
Oriented
Easy to
learn
High level
language
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
JAVA PYTHON
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
Python was named after British comedy
group ‘MONTY PYTHON’.
GUIDO VAN ROSSUM
Applications of
python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Applications Of Python Programming Language
Server side Web
Development
Prototyping
Big data
Scripting
Software Development
Databases
Variable declaration
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Declaration and Definition
Variable Declaration
Variable Definition
Variable
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Examples
Variable Declaration
Variable
Variable is created as soon as you assign a value to it. It does not
need any commands unlike other programming languages.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Examples
Variable
Variable Declaration
x = 100
y = “Edureka”
Print(x)
Print(y)
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Variable Declaration
Variable
Examples
x = 100
y = 200
print(x * y)
print(x – y)
print(x % y)
Variable data types
Data Types
www.edureka.co/pythonPYTHON CERTIFICATION TRAINING
32 41
NUMBERS
STRING
LIST TUPLE
DICTIONARY
5 6
SET
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBERS
STRING
SET
integer:
x = 10
float:
x = 10.234
Complex:
x = 25j
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
x = ‘hello’
y = “world”
z = input()
print(“here is an example”, x, y, z)
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
Fruits = [‘apple’, ‘kiwi’, ‘banana’]
print(Fruits)
Ordered, can be changed. Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = { ‘reptiles’: ‘snake’,
‘mammals’ : ‘whale’,
‘amphibians’ : ‘frogs’
}
print(animals)
Unordered, can be changed. NO Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = (‘lion’, ‘tiger’, ‘monkey’)
print(animals)
Ordered, cannot be changed. Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = {“lion”, “monkey”, “snake”}
print(animals)
Unordered, No Duplicate entries are present.
Type conversion
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Type Conversion
x = (20)
y = (“number is”)
z = 20
Print( str(x * z) , y )
Type conversion specifies a type
to a variable.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Type Conversion
1. int() – This function changes any data type to integer data type.
2. float() – This function changes any data type to float data type.
3. tuple() – This function changes any data type to tuple.
4. list() – This function changes any data type to a List.
5. set() – This function changes any data type to a Set.
6. dict() – This function changes any data type to a dictionary.
YouTube Video Link in the Description
Variables & Data Types In Python | Edureka
Ad

Recommended

Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
 
Tcs ppt
Tcs ppt
Aqsa Javed
 
Introduction to Python
Introduction to Python
Nowell Strite
 
Python made easy
Python made easy
Abhishek kumar
 
Functions in python slide share
Functions in python slide share
Devashish Kumar
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
Python-02| Input, Output & Import
Python-02| Input, Output & Import
Mohd Sajjad
 
Operators in python
Operators in python
Prabhakaran V M
 
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
Python final ppt
Python final ppt
Ripal Ranpara
 
Python basic
Python basic
Saifuddin Kaijar
 
Python programming : Control statements
Python programming : Control statements
Emertxe Information Technologies Pvt Ltd
 
Dictionaries in Python
Dictionaries in Python
baabtra.com - No. 1 supplier of quality freshers
 
Python Modules
Python Modules
Nitin Reddy Katkam
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
Edureka!
 
Python-03| Data types
Python-03| Data types
Mohd Sajjad
 
Python programming : Files
Python programming : Files
Emertxe Information Technologies Pvt Ltd
 
Python programming
Python programming
Ashwin Kumar Ramasamy
 
Python: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Looping statement in python
Looping statement in python
RaginiJain21
 
Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Python for loop
Python for loop
Aishwarya Deshmukh
 
Datatypes in python
Datatypes in python
eShikshak
 
File handling in Python
File handling in Python
Megha V
 
Python Functions
Python Functions
Mohammed Sikander
 
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Edureka!
 
Introduction to-python
Introduction to-python
Aakashdata
 
Functions in C
Functions in C
Kamal Acharya
 
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Edureka!
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 

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...
Edureka!
 
Python final ppt
Python final ppt
Ripal Ranpara
 
Python basic
Python basic
Saifuddin Kaijar
 
Python programming : Control statements
Python programming : Control statements
Emertxe Information Technologies Pvt Ltd
 
Dictionaries in Python
Dictionaries in Python
baabtra.com - No. 1 supplier of quality freshers
 
Python Modules
Python Modules
Nitin Reddy Katkam
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
Edureka!
 
Python-03| Data types
Python-03| Data types
Mohd Sajjad
 
Python programming : Files
Python programming : Files
Emertxe Information Technologies Pvt Ltd
 
Python programming
Python programming
Ashwin Kumar Ramasamy
 
Python: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Looping statement in python
Looping statement in python
RaginiJain21
 
Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Python for loop
Python for loop
Aishwarya Deshmukh
 
Datatypes in python
Datatypes in python
eShikshak
 
File handling in Python
File handling in Python
Megha V
 
Python Functions
Python Functions
Mohammed Sikander
 
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Edureka!
 
Introduction to-python
Introduction to-python
Aakashdata
 
Functions in C
Functions in C
Kamal Acharya
 
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
Edureka!
 
Python-03| Data types
Python-03| Data types
Mohd Sajjad
 
Python: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Looping statement in python
Looping statement in python
RaginiJain21
 
Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Datatypes in python
Datatypes in python
eShikshak
 
File handling in Python
File handling in Python
Megha V
 
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Edureka!
 
Introduction to-python
Introduction to-python
Aakashdata
 

Similar to Variables & Data Types In Python | Edureka (8)

Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Edureka!
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Edureka!
 
Most Asked Python Interview Questions
Most Asked Python Interview Questions
Shubham Shrimant
 
Introduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data Analytics
Phoenix
 
Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualize
IruolagbePius
 
5 Simple Steps To Install Python On Windows | Install Python 3.7 | Python Tra...
5 Simple Steps To Install Python On Windows | Install Python 3.7 | Python Tra...
Edureka!
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Edureka!
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Edureka!
 
Most Asked Python Interview Questions
Most Asked Python Interview Questions
Shubham Shrimant
 
Introduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data Analytics
Phoenix
 
Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualize
IruolagbePius
 
5 Simple Steps To Install Python On Windows | Install Python 3.7 | Python Tra...
5 Simple Steps To Install Python On Windows | Install Python 3.7 | Python Tra...
Edureka!
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Ad

More from Edureka! (20)

What 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 | Edureka
Edureka!
 
Top 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 | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux 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| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
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 | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
What 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 | Edureka
Edureka!
 
Top 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 | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux 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| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
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 | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 

Variables & Data Types In Python | Edureka

  • 1. PYTHON CERTIFICATION TRAINING www.edureka.co/python
  • 2. PYTHON CERTIFICATION TRAINING www.edureka.co/python 01 IntroductionTo Python 02 Applications of Python 03 Variable Declaration 04 Variable Data Types 05 Type Conversion Topics For Today’s Discussion
  • 4. PYTHON CERTIFICATION TRAINING www.edureka.co/python Introduction to Python Python is a high-level interpreted, Object oriented programming language, popular for its readability and clear syntax. Procedure Oriented Object Oriented Easy to learn High level language
  • 5. PYTHON CERTIFICATION TRAINING www.edureka.co/python Introduction to Python JAVA PYTHON
  • 6. PYTHON CERTIFICATION TRAINING www.edureka.co/python Introduction to Python Python was named after British comedy group ‘MONTY PYTHON’. GUIDO VAN ROSSUM
  • 8. PYTHON CERTIFICATION TRAINING www.edureka.co/python Applications Of Python Programming Language Server side Web Development Prototyping Big data Scripting Software Development Databases
  • 10. PYTHON CERTIFICATION TRAINING www.edureka.co/python Variable Declaration and Definition Variable Declaration Variable Definition Variable
  • 11. PYTHON CERTIFICATION TRAINING www.edureka.co/python Variable Definition and Declaration Examples Variable Declaration Variable Variable is created as soon as you assign a value to it. It does not need any commands unlike other programming languages.
  • 12. PYTHON CERTIFICATION TRAINING www.edureka.co/python Variable Definition and Declaration Examples Variable Variable Declaration x = 100 y = “Edureka” Print(x) Print(y)
  • 13. PYTHON CERTIFICATION TRAINING www.edureka.co/python Variable Definition and Declaration Variable Declaration Variable Examples x = 100 y = 200 print(x * y) print(x – y) print(x % y)
  • 15. Data Types www.edureka.co/pythonPYTHON CERTIFICATION TRAINING 32 41 NUMBERS STRING LIST TUPLE DICTIONARY 5 6 SET
  • 16. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBERS STRING SET integer: x = 10 float: x = 10.234 Complex: x = 25j
  • 17. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBER STRING SET x = ‘hello’ y = “world” z = input() print(“here is an example”, x, y, z)
  • 18. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBER STRING SET Example: Fruits = [‘apple’, ‘kiwi’, ‘banana’] print(Fruits) Ordered, can be changed. Duplicate entries are present.
  • 19. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBER STRING SET Example: animals = { ‘reptiles’: ‘snake’, ‘mammals’ : ‘whale’, ‘amphibians’ : ‘frogs’ } print(animals) Unordered, can be changed. NO Duplicate entries are present.
  • 20. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBER STRING SET Example: animals = (‘lion’, ‘tiger’, ‘monkey’) print(animals) Ordered, cannot be changed. Duplicate entries are present.
  • 21. PYTHON CERTIFICATION TRAINING www.edureka.co/python Data Types DICTIONARY LIST TUPLE NUMBER STRING SET Example: animals = {“lion”, “monkey”, “snake”} print(animals) Unordered, No Duplicate entries are present.
  • 23. PYTHON CERTIFICATION TRAINING www.edureka.co/python Type Conversion x = (20) y = (“number is”) z = 20 Print( str(x * z) , y ) Type conversion specifies a type to a variable.
  • 24. PYTHON CERTIFICATION TRAINING www.edureka.co/python Type Conversion 1. int() – This function changes any data type to integer data type. 2. float() – This function changes any data type to float data type. 3. tuple() – This function changes any data type to tuple. 4. list() – This function changes any data type to a List. 5. set() – This function changes any data type to a Set. 6. dict() – This function changes any data type to a dictionary.
  • 25. YouTube Video Link in the Description