Data types in Python

 Data Types

Every value belongs to a specific data type in Python. 

Data type identifies the type of data values a variable 

can hold and the operations that can be performed on 

that data. Figure 5.6 enlists the data types available 

in Python.

Number

Number data type stores numerical values only. It is 

further classified into three different types: int, float

and complex.

Boolean data type (bool) is a subtype of integer. It 
is a unique data type, consisting of two constants, True
and False. Boolean True value is non-zero, non-null 
and non-empty. Boolean False is the value zero.

Comments

Popular posts from this blog

How to create a set in python

How to add comments in python ?