len() function returns the number of items in a data type : len « Buildin Function « Python Tutorial






str1 = 'abc'
print len(str1)
print len('Hello World!')
13.29.len
13.29.1.len() function returns the number of items in a data type