I have been using Pycharm for Python executions. I'm using version 3.8. I'm not able to get the exact size of the data types in Python. I refereed the following link: https://www.geeksforgeeks.org/how-to-find-size-of-an-object-in-python/ But when I executed the same examples as mentioned in the link I didn't get a similar output.
import sys
a = sys.getsizeof(12)
print(a)
b=sys.getsizeof('geeks')
print(b)
I executed the above code. The output for a was 14 and for b was 30. But according to the link, it should have been 28 and 54 respectively.
Please Help if there's any other way of calculating the size for the datatypes.