SlideShare a Scribd company logo
2
Most read
4
Most read
8
Most read
Data Types in Python
Swipe
Data Types in Python
Operator Operator
Integers
Float
Complex
Boolean
String
None
List
Tuple
Range
Bytes
Bytes Arrays
Set
Frozen Set
Dictionary
Suite
Numbers
Sequence
Sequence
Mapping
The classification or categorising of data
elements is known as data types. It denotes
the kind of value that specifies which
operations can be performed on a given set of
data. Data types are essentially classes, and
variables are instances (objects) of these
classes, because everything in Python
programming is an object.
Data Types in Python
The standard Python method is used to create Python
numbers variables.
Using the regular Python number type is usually sufficient.
If necessary, Python will automatically convert a number
from one type to another.
But, under certain circumstances that a specific number
type is needed (ie. complex)
Numbers in python:-
Integers
Float
Complex
Number
Integers in Python
This value is represented by int class. It contains
positive or negative whole numbers (without
fraction or decimal). In Python there is no limit to
how long an integer value can be.
Integers
Whole number without
decimal point, including.
Integers can be represent
in different forms.
No concept of size for any
data type in python
Floats in Python
This value is represented by float class. It is a real
number with floating point representation. It is
specified by a decimal point. Optionally, the
character e or E followed by a positive or negative
integer may be appended to specify scientific
notation.
Floats
Real number with
decimal point
Exponential from
No concept of double
Complex numbers in Python
Integers
a+bj where a is real b is
imaginary.
j is the square root of -.
a.real
b.imag
a can be decimal/binary
b can be decimal only
Except modulo operation
rest all operations are
applicable.
Complex number is represented by complex class. It is
specified as (real part) + (imaginary part)j.
Data Types in Python
Mutable vs Immutable Data
type in Python
Stay Tuned with
Topics for next Post

More Related Content

PPT
Introduction to Python
PPTX
Data Structures in Python
ODP
Python Modules
PPT
Introduction to Python
PPTX
Modules in Python Programming
PPT
Python Programming Language
PPTX
Loops in Python
PDF
Strings in python
Introduction to Python
Data Structures in Python
Python Modules
Introduction to Python
Modules in Python Programming
Python Programming Language
Loops in Python
Strings in python

What's hot (20)

PPTX
Union in C programming
PPSX
Modules and packages in python
PDF
Python Basics | Python Tutorial | Edureka
PPTX
Python
PPTX
Variables in python
PPTX
Control Flow Statements
PPT
Operators in C++
PPTX
PPTX
Operators in Python
PDF
Basic Concepts in Python
PPTX
Strings in Java
PPTX
Object oriented programming in python
PDF
Date and Time Module in Python | Edureka
PPTX
Functions in c++
PPTX
Python basics
PPTX
Fundamentals of Python Programming
PPTX
Static Members-Java.pptx
PDF
Python Flow Control
PPTX
Polymorphism in Python
PPTX
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Union in C programming
Modules and packages in python
Python Basics | Python Tutorial | Edureka
Python
Variables in python
Control Flow Statements
Operators in C++
Operators in Python
Basic Concepts in Python
Strings in Java
Object oriented programming in python
Date and Time Module in Python | Edureka
Functions in c++
Python basics
Fundamentals of Python Programming
Static Members-Java.pptx
Python Flow Control
Polymorphism in Python
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Ad

Similar to Data types in python (20)

PDF
E-Notes_3720_Content_Document_20250107032323PM.pdf
PPTX
data type of pythonpython pytohn datagsdkghmkedhm,fdlbm
PDF
13- Data and Its Types presentation kafss
PPTX
Data Types In Python.pptx
PDF
Object reusability in python
PPTX
Introduction to Python for Data Science and Machine Learning
PDF
4. Data Handling computer shcience pdf s
PPTX
Presentation on python data type
PPTX
L5 - Data Types, Keywords.pptx
PPTX
L6 - Loops.pptx
PPTX
L6 - Loops.pptx
PPTX
2. Values and Data types in Python.pptx
PDF
Zero to Hero - Introduction to Python3
PPTX
introduction to python,datatypes,operators
PPT
Python - Module 1.ppt
PPTX
Values and Data types in python
PPTX
trisha comp ppt.pptx
PDF
COMPUTER SCIENCE SUPPORT MATERIAL CLASS 12.pdf
PDF
ppt notes python language operators and data
PPTX
Python 3 Programming Language
E-Notes_3720_Content_Document_20250107032323PM.pdf
data type of pythonpython pytohn datagsdkghmkedhm,fdlbm
13- Data and Its Types presentation kafss
Data Types In Python.pptx
Object reusability in python
Introduction to Python for Data Science and Machine Learning
4. Data Handling computer shcience pdf s
Presentation on python data type
L5 - Data Types, Keywords.pptx
L6 - Loops.pptx
L6 - Loops.pptx
2. Values and Data types in Python.pptx
Zero to Hero - Introduction to Python3
introduction to python,datatypes,operators
Python - Module 1.ppt
Values and Data types in python
trisha comp ppt.pptx
COMPUTER SCIENCE SUPPORT MATERIAL CLASS 12.pdf
ppt notes python language operators and data
Python 3 Programming Language
Ad

More from Learnbay Datascience (20)

PDF
Top data science projects
PDF
Python my SQL - create table
PDF
Python my SQL - create database
PDF
Python my sql database connection
PDF
Python - mySOL
PDF
AI - Issues and Terminology
PDF
AI - Fuzzy Logic Systems
PDF
AI - working of an ns
PDF
Artificial Intelligence- Neural Networks
PDF
AI - Robotics
PDF
Applications of expert system
PDF
Components of expert systems
PDF
Artificial intelligence - expert systems
PDF
AI - natural language processing
PDF
Ai popular search algorithms
PDF
AI - Agents & Environments
PDF
Artificial intelligence - research areas
PDF
Artificial intelligence composed
PDF
Artificial intelligence intelligent systems
PDF
Applications of ai
Top data science projects
Python my SQL - create table
Python my SQL - create database
Python my sql database connection
Python - mySOL
AI - Issues and Terminology
AI - Fuzzy Logic Systems
AI - working of an ns
Artificial Intelligence- Neural Networks
AI - Robotics
Applications of expert system
Components of expert systems
Artificial intelligence - expert systems
AI - natural language processing
Ai popular search algorithms
AI - Agents & Environments
Artificial intelligence - research areas
Artificial intelligence composed
Artificial intelligence intelligent systems
Applications of ai

Recently uploaded (20)

PDF
High Ground Student Revision Booklet Preview
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
Insiders guide to clinical Medicine.pdf
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
PDF
LDMMIA Reiki Yoga Workshop 15 MidTerm Review
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Congenital Hypothyroidism pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
From loneliness to social connection charting
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PDF
English Language Teaching from Post-.pdf
PPTX
Onica Farming 24rsclub profitable farm business
PDF
Types of Literary Text: Poetry and Prose
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
High Ground Student Revision Booklet Preview
How to Manage Starshipit in Odoo 18 - Odoo Slides
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
Week 4 Term 3 Study Techniques revisited.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Open folder Downloads.pdf yes yes ges yes
Insiders guide to clinical Medicine.pdf
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
LDMMIA Reiki Yoga Workshop 15 MidTerm Review
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Congenital Hypothyroidism pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
102 student loan defaulters named and shamed – Is someone you know on the list?
From loneliness to social connection charting
Open Quiz Monsoon Mind Game Prelims.pptx
English Language Teaching from Post-.pdf
Onica Farming 24rsclub profitable farm business
Types of Literary Text: Poetry and Prose
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...

Data types in python

  • 1. Data Types in Python Swipe
  • 2. Data Types in Python Operator Operator Integers Float Complex Boolean String None List Tuple Range Bytes Bytes Arrays Set Frozen Set Dictionary Suite Numbers Sequence Sequence Mapping
  • 3. The classification or categorising of data elements is known as data types. It denotes the kind of value that specifies which operations can be performed on a given set of data. Data types are essentially classes, and variables are instances (objects) of these classes, because everything in Python programming is an object. Data Types in Python
  • 4. The standard Python method is used to create Python numbers variables. Using the regular Python number type is usually sufficient. If necessary, Python will automatically convert a number from one type to another. But, under certain circumstances that a specific number type is needed (ie. complex) Numbers in python:- Integers Float Complex Number
  • 5. Integers in Python This value is represented by int class. It contains positive or negative whole numbers (without fraction or decimal). In Python there is no limit to how long an integer value can be. Integers Whole number without decimal point, including. Integers can be represent in different forms. No concept of size for any data type in python
  • 6. Floats in Python This value is represented by float class. It is a real number with floating point representation. It is specified by a decimal point. Optionally, the character e or E followed by a positive or negative integer may be appended to specify scientific notation. Floats Real number with decimal point Exponential from No concept of double
  • 7. Complex numbers in Python Integers a+bj where a is real b is imaginary. j is the square root of -. a.real b.imag a can be decimal/binary b can be decimal only Except modulo operation rest all operations are applicable. Complex number is represented by complex class. It is specified as (real part) + (imaginary part)j.
  • 8. Data Types in Python Mutable vs Immutable Data type in Python Stay Tuned with Topics for next Post