len() Function

Returns the length in characters of the text.

Syntax

len( text )

text: (Text) The text, the length of which will be returned.

Returns

Number

Examples

You can experiment with this function in the test box below.

Test Input

len("boston") returns 6

Open in Github Built: Fri, Sep 17, 2021 (04:03:56 PM)

On This Page

FEEDBACK