Please login


Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Ranges of Data Types in Python

Range of Data Types :

Data types are the classification of data items. It represents that kind of value which tells what operations can be performed on a particular data type.Everything is an object in Python programming, data types are actually classes and variables are instance  of these classes. 

Example :

  • Integer – 4, 5 ,6
  • Float – 3.22 , 0. 0111
Range of Data Types in Python

In python , value of an integer/float is not fixed and it can be as large as possible until our memory has some space to accomodate it. So we never need any special keyword for large integer or float like c/c++ have.

Hence python 3 has only integer and float , but in python 2.7 there was two types of  integer ‘int’ and ‘Long int’. 

Code #1:

#python Program

#Range on data type 

print(‘X is = ‘ , x)

print(‘Y is = ‘ , y)


Output :

X is = 99999999999999999999999999999999999999999999999999999999999999999999999
Y is = 1e-69