I am unable to understand the actual memory space that is allocated to integers and floats in python.
From what I know, sizes of int and float variables by default in python are 32-bit and 64-bit respectively.
But from results of the following code, it looks like 28-bits and 24-bits are allocated.
i = 2
print(sys.getsizeof(i))
Output: 28
i = 0.02
print(sys.getsizeof(i))
Output: 24
Please let me know what part have I misunderstood here.