https://www.youtube.com/@bootlogics86...
#python #coding #programming #pythonforbeginners #pythontutorial
The Python 'int' is not a simple 32 or 64 Bit value, but a class that can hold arbitrarily large numbers. That's why it is much larger than 4 or 8.
Same argument is valid for float.
Why the size is different, is an implementation detail (and can change e.g. when the number gets bigger).