len function

This 2019.0 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Syntax

  • float len(string inputstring)

Returns

Length of inputstring.

Description

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

Related

Examples

example.1
	len("cityengine")
	# result = 10
example.2
	len("abc")
	# result = 3

In this topic