len function

Syntax

  • float len(inputString)

Parameters

  1. inputString—string

Returns

Length of inputString.

Description

The len function returns the number of characters of the inputString.

Related

Examples

len("cityengine")
# result = 10
len("abc")
# result = 3

In this topic