Convert value to text. Existing strings stay unchanged; numbers and built-in collections use Python text notation.
Syntax
str(value="", /)Parameters
| Name | Description |
|---|---|
valueAny | Value to convert Optional · Positional only Default: "" |
Returns
String — Text form of the value.Example
total = 12
text("Total: " + str(total))