The method len() returns the length of the string.
NA
len( str )
#!/usr/bin/python str = "this is string example....wow!!!"; print "Length of the string: ", len(str)
When we run above program, it produces following result −
Length of the string: 32