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