Python Basics
Python Advanced
Python Useful References
Python Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
Python String len() Method
Description:
This method returns the length of the string.
Syntax:
Parameters:
Here is the detail of parameters:
Return Value:
It returns the length of the string.
Example:
#!/usr/bin/python
str = "this is string example....wow!!!";
print "Length of the string: ", len(str);
|
This will produce following result:
|
|
|