If you want to get the length of the string, you can use len():
>>> s = 'intellipaat community'
>>> len(s)
If you need the size of the string in bytes, you need sys.getsizeof():
>>> import sys
>>> sys.getsizeof(s)
To know more about this you can have a look at the following video tutorial:-