Data types are means to identify the type of data and associated operations for handling it. In python, we need not to define the type of the variable while declaring it. The interpreter implicitly binds the value with its type accordingly.
Data types represent a kind of value which determines what operations can be performed on that given data.
Number data types store numeric values. Number objects are created when you assign a value to them. For example –
var1 =1 var2 =10
You can also delete the reference to a number object by using the del statement. The syntax of the del statement is −
del var1[,var2[,var3[ ,varN]]]]
You can delete a single object or multiple objects by using the del statement. For example −
del var del var_a,var_b
int | long | float | complex |
---|---|---|---|
10 | 51924361L | 0.0 | 3.14j |
100 | -0x19323L | 15.20 | 45.j |
-786 | 0122L | -21.9 | 9.322e-36j |