Copyright © tutorialspoint.com
This method returns the length of the string.
len( str ) |
Here is the detail of parameters:
NA
It returns the length of the string.
#!/usr/bin/python str = "this is string example....wow!!!"; print "Length of the string: ", len(str); |
This will produce following result:
Length of the string: 32 |
Copyright © tutorialspoint.com