Mega Code Archive
Categories
/
Python Tutorial
/
Buildin Function
Len() function returns the number of items in a data type
str1 = 'abc' print len(str1) print len('Hello World!')