len() function returns the number of items in a data type : Len : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Len »

 

len() function returns the number of items in a data type


str1 = 'abc'
print len(str1)
print len('Hello World!')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Len