import sys
integer_value = 5
size = sys.getsizeof(integer_value)
print(integer_value.__sizeof__())
print(f"The memory consumption of the integer 5 is {size} bytes.")
>>> 28
>>> The memory consumption of the integer 5 is 28 bytes.
He isn’t actually precise in the video he says “around 20 bytes”