len

Syntax

  • float len(inputString)

Parameters

  1. inputStringstring

Returns

Length of inputString.

Description

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

Examples

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

Was this article helpful?