SlideShare a Scribd company logo
MAA UMIYA PATIDAR GIRLS HR. SEC. SCHOOL RAU
SUBMITTED
BY:KRATIKA PATIDAR
MAHAK PATIDAR
SUBMMITED
TO:MRS.MALA PATIDAR
CLASS : 11TH A
 DATA TYPES IN PYTHON
a) PYTHON NUMBER
b) PYTHON LIST
c) PYTHON TUPLE
d) PYTHON STRING
e) PYTHON SET
f) PYTHON DICTIONARY
 Every value in Python has a data type. Since everything
is an object in Python programming, data types are
actually classes and variables are instance (object) of
these classes.
 There are various data types in Python. Some of the
important types are listed below
 Integers, floating point numbers and complex
numbers falls under Python numbers category. They
are defined as int, float and complex class in Python.
 We can use the type() function to know which class a
variable or a value belongs to and the is instance()
function to check if an object belongs to a particular
class
 Integer can be of any length, it is only limited by the
memory available. EXAMPLE: 8 etc .
 A floating point number is accurate up to 15 decimal
places. Integer and floating points are separated by
decimal points. 1 is integer, 1.0 is floating point
number.
 A complex number are of the form a+bj where a and b
are floats and j represents square root of -1 .a is real
part of a number and b is the imaginary part .
Example : 2+3 j etc.
 List is an ordered sequence of items. It is one of the
most used data type in Python and is very flexible. All
the items in a list do not need to be of the same type.
 Items separated by commas are enclosed within
brackets [ ].
 List are mutable, meaning, value of elements of a list
can be altered.
 For example : [“neha”,102,1.1]
 Tuple is an ordered sequence of items same as list.The
only difference is that tuple are immutable. Tuples
once created cannot be modified.
 Tuples are used to write-protect data and are usually
faster than list as it cannot change dynamically.
 It is defined within parentheses () where items are
separated by commas.
 We can use the slicing operator [] to extract items but
we cannot change its value.
 For example: (‘a’, ‘e’, ‘I’, ‘o,’ ‘u’)
 String is sequence of Unicode characters. We can use
single quotes or double quotes to represent strings.
Multi-line strings can be denoted using triple quotes’’’
.
 Like list and tuple, slicing operator [ ] can be used with
string. Strings are immutable .
 for example:“hello world ”etc .
 Set is an unordered collection of unique items. Set is
defined by values separated by comma inside braces{
}.items in a set are not ordered.
 We can perform set operations like union, intersection
on two sets. Set have unique values. They eliminate
duplicates.
 Dictionary is an unordered collection of key-value
pairs.
 It is generally used when we have a huge amount of
data. Dictionaries are optimized for retrieving data.
We must know the key to retrieve the value.
 In Python, dictionaries are defined within braces {}
with each item being a pair in the form key:value. Key
and value can be of any type.
THANK
YOU

More Related Content

What's hot (20)

PDF
Collections In Java
Binoj T E
 
PPT
Abstract class in java
Lovely Professional University
 
PPTX
Inheritance in java
Tech_MX
 
PPTX
Method overloading
Lovely Professional University
 
PPTX
SUBQUERIES.pptx
RenugadeviR5
 
PPTX
Python Functions
Mohammed Sikander
 
PPT
Python ppt
Mohita Pandey
 
PPTX
Array in Java
Ali shah
 
PPTX
Datatype in c++ unit 3 -topic 2
MOHIT TOMAR
 
PPTX
Inheritance in java
RahulAnanda1
 
PPTX
JAVA AWT
shanmuga rajan
 
PPTX
Java string handling
Salman Khan
 
PPTX
Data Structures in Python
Devashish Kumar
 
PPS
Wrapper class
kamal kotecha
 
PPTX
Inheritance in c++
Vineeta Garg
 
PPT
Array in Java
Shehrevar Davierwala
 
PPT
Strings
naslin prestilda
 
PPTX
Dynamic memory allocation in c++
Tech_MX
 
PPTX
Super keyword in java
Hitesh Kumar
 
Collections In Java
Binoj T E
 
Abstract class in java
Lovely Professional University
 
Inheritance in java
Tech_MX
 
Method overloading
Lovely Professional University
 
SUBQUERIES.pptx
RenugadeviR5
 
Python Functions
Mohammed Sikander
 
Python ppt
Mohita Pandey
 
Array in Java
Ali shah
 
Datatype in c++ unit 3 -topic 2
MOHIT TOMAR
 
Inheritance in java
RahulAnanda1
 
JAVA AWT
shanmuga rajan
 
Java string handling
Salman Khan
 
Data Structures in Python
Devashish Kumar
 
Wrapper class
kamal kotecha
 
Inheritance in c++
Vineeta Garg
 
Array in Java
Shehrevar Davierwala
 
Dynamic memory allocation in c++
Tech_MX
 
Super keyword in java
Hitesh Kumar
 

Similar to Python data type (20)

PDF
13- Data and Its Types presentation kafss
AliKhokhar33
 
PDF
E-Notes_3720_Content_Document_20250107032323PM.pdf
aayushihirpara297
 
PDF
COMPUTER SCIENCE SUPPORT MATERIAL CLASS 12.pdf
rajkumar2792005
 
PPTX
Data Types In Python.pptx
YatharthChaudhary5
 
PDF
4. Data Handling computer shcience pdf s
TonyTech2
 
PPTX
Chapter - 2.pptx
MikialeTesfamariam
 
PPTX
2. Values and Data types in Python.pptx
deivanayagamramachan
 
PDF
Python-03| Data types
Mohd Sajjad
 
PPTX
data type of pythonpython pytohn datagsdkghmkedhm,fdlbm
dibyashakti10
 
PDF
ppt notes python language operators and data
SukhpreetSingh519414
 
PDF
List and tuple in python
proximaK
 
PPTX
Data types in python lecture (2)
Ali ٍSattar
 
PPTX
Data structures in Python
MITULJAMANG
 
PPTX
pythondatatypes.pptx
ArchanaAravind1
 
PPTX
Python Session - 3
AnirudhaGaikwad4
 
PPTX
Basic data types in python
sunilchute1
 
PPTX
Chapter 2-Programming Basics and Arrays.pptx Chapter 2-Programming Basics and...
YosefNigussie2
 
PPTX
The Datatypes Concept in Core Python.pptx
Kavitha713564
 
PPTX
trisha comp ppt.pptx
Tapaswini14
 
PPTX
11 Unit 1 Chapter 03 Data Handling
Praveen M Jigajinni
 
13- Data and Its Types presentation kafss
AliKhokhar33
 
E-Notes_3720_Content_Document_20250107032323PM.pdf
aayushihirpara297
 
COMPUTER SCIENCE SUPPORT MATERIAL CLASS 12.pdf
rajkumar2792005
 
Data Types In Python.pptx
YatharthChaudhary5
 
4. Data Handling computer shcience pdf s
TonyTech2
 
Chapter - 2.pptx
MikialeTesfamariam
 
2. Values and Data types in Python.pptx
deivanayagamramachan
 
Python-03| Data types
Mohd Sajjad
 
data type of pythonpython pytohn datagsdkghmkedhm,fdlbm
dibyashakti10
 
ppt notes python language operators and data
SukhpreetSingh519414
 
List and tuple in python
proximaK
 
Data types in python lecture (2)
Ali ٍSattar
 
Data structures in Python
MITULJAMANG
 
pythondatatypes.pptx
ArchanaAravind1
 
Python Session - 3
AnirudhaGaikwad4
 
Basic data types in python
sunilchute1
 
Chapter 2-Programming Basics and Arrays.pptx Chapter 2-Programming Basics and...
YosefNigussie2
 
The Datatypes Concept in Core Python.pptx
Kavitha713564
 
trisha comp ppt.pptx
Tapaswini14
 
11 Unit 1 Chapter 03 Data Handling
Praveen M Jigajinni
 
Ad

More from nuripatidar (9)

PPTX
Python program
nuripatidar
 
PPTX
Python operators
nuripatidar
 
PPTX
Python lists
nuripatidar
 
PPTX
Tuple.py
nuripatidar
 
PPTX
Indian history
nuripatidar
 
PPTX
Python basic Program
nuripatidar
 
PPTX
Python Programme list
nuripatidar
 
PPTX
Chemistry
nuripatidar
 
PPTX
Python statements
nuripatidar
 
Python program
nuripatidar
 
Python operators
nuripatidar
 
Python lists
nuripatidar
 
Tuple.py
nuripatidar
 
Indian history
nuripatidar
 
Python basic Program
nuripatidar
 
Python Programme list
nuripatidar
 
Chemistry
nuripatidar
 
Python statements
nuripatidar
 
Ad

Recently uploaded (20)

PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Horarios de distribución de agua en julio
pegazohn1978
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 

Python data type

  • 1. MAA UMIYA PATIDAR GIRLS HR. SEC. SCHOOL RAU SUBMITTED BY:KRATIKA PATIDAR MAHAK PATIDAR SUBMMITED TO:MRS.MALA PATIDAR CLASS : 11TH A
  • 2.  DATA TYPES IN PYTHON a) PYTHON NUMBER b) PYTHON LIST c) PYTHON TUPLE d) PYTHON STRING e) PYTHON SET f) PYTHON DICTIONARY
  • 3.  Every value in Python has a data type. Since everything is an object in Python programming, data types are actually classes and variables are instance (object) of these classes.  There are various data types in Python. Some of the important types are listed below
  • 4.  Integers, floating point numbers and complex numbers falls under Python numbers category. They are defined as int, float and complex class in Python.  We can use the type() function to know which class a variable or a value belongs to and the is instance() function to check if an object belongs to a particular class
  • 5.  Integer can be of any length, it is only limited by the memory available. EXAMPLE: 8 etc .  A floating point number is accurate up to 15 decimal places. Integer and floating points are separated by decimal points. 1 is integer, 1.0 is floating point number.  A complex number are of the form a+bj where a and b are floats and j represents square root of -1 .a is real part of a number and b is the imaginary part . Example : 2+3 j etc.
  • 6.  List is an ordered sequence of items. It is one of the most used data type in Python and is very flexible. All the items in a list do not need to be of the same type.  Items separated by commas are enclosed within brackets [ ].  List are mutable, meaning, value of elements of a list can be altered.  For example : [“neha”,102,1.1]
  • 7.  Tuple is an ordered sequence of items same as list.The only difference is that tuple are immutable. Tuples once created cannot be modified.  Tuples are used to write-protect data and are usually faster than list as it cannot change dynamically.  It is defined within parentheses () where items are separated by commas.  We can use the slicing operator [] to extract items but we cannot change its value.  For example: (‘a’, ‘e’, ‘I’, ‘o,’ ‘u’)
  • 8.  String is sequence of Unicode characters. We can use single quotes or double quotes to represent strings. Multi-line strings can be denoted using triple quotes’’’ .  Like list and tuple, slicing operator [ ] can be used with string. Strings are immutable .  for example:“hello world ”etc .
  • 9.  Set is an unordered collection of unique items. Set is defined by values separated by comma inside braces{ }.items in a set are not ordered.  We can perform set operations like union, intersection on two sets. Set have unique values. They eliminate duplicates.
  • 10.  Dictionary is an unordered collection of key-value pairs.  It is generally used when we have a huge amount of data. Dictionaries are optimized for retrieving data. We must know the key to retrieve the value.  In Python, dictionaries are defined within braces {} with each item being a pair in the form key:value. Key and value can be of any type.