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

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

In this topic