# Which datatype is represented by int in python?

Data can be of many types e.g., character, integer, real, string, etc. Numbers without fractions represent integer data.

Number datatypes are used to store numeric values in python. Number datatypes in python have the following core datatype:-

- Integer
- Integer(signed)
- Boolean

- Floating point number
- Complex numbers

Integers are the whole number such as 3, 10, 45, etc. They have no fractional parts. Integers in python 3.x can be of any length, it is only limited to memory available. It is represented by ‘int’ in python.

e.g.,

a=22 print(type(a))

Subscribe

Login

Please login to comment

0 Discussion