Syntax
- string str(value)
Parameters
- value—(float, bool, string, float[], bool[], string[])Value to convert.
Returns
String calculated from value.
Description
The str function converts value to the corresponding string value.
Related
Examples
example.1
str(1.69)
# result = "1.69"
example.2
str(1.69 - 69/100)
# result = "1"
example.3
str(001)
# result = "1"
example.4
str(true)
# result = "true"