DEV Community

Cover image for Data Types in Python
Keshav Jindal
Keshav Jindal

Posted on

Data Types in Python

1.Introduction
Variable in python stores different kind of data and these are :
Image description
2.INTEGER TYPE OF DATA
As the name suggest it contain positive or negative type of data. It is used by the keyword "int.
Image description
Image description
3.Float
It contains decimal type of data.
Image description
Image description
4.String
It contains a message to be executed to the user and it is enclosed in quotes.
Image description
Image description
5.Tuple

It can contain more than one type of data in one variable. They are enclosed in ().
NOTE- Tuple value is unchangeable.
Image description
Image description

6.Lists
They contain multiple data in them. They are enclosed in square brackets[].
Image description
Image description
7.Sets
With the help of Sets we can make many sets of different data and they are enclosed in {}.
Image description
Image description

Oldest comments (0)