Get size of a String, list/tuple, or dict.
Syntax
len(value, /)Parameters
| Name | Description |
|---|---|
valueString | list | tuple | dict | Value to measure Required · Positional only No default |
Returns
Int — Number of items/characters.Behavior / side effects
Get size of a String, list/tuple, or dict.
Execution
- Blocking: No
- Thread safety: Use separate objects per flow
- Parallel execution: Yes
Value operations execute in the calling flow without an intentional wait for capture, gesture completion, or user input. Create mutable containers/builders separately in each flow; this is isolation, not a shared-object synchronization guarantee.
Example
name = "CogniTab"
count = len(name)
text(str(count))Errors / limitations
No additional limitations documented; follow the parameter and behavior contract above.
Related APIs
None