String length

Return string length.

Syntax

The format is:

len(str)

Parameters

String

Example

str = "All work and no play makes Jack a dull boy. Jack?"
strlen = len(str)
print(strlen)

Result:


49