PythonBuilt-instr
range

strBuilt-in

int

Converts an object to a string.

Syntax

str(object?)

Example

Enter values below to update the example in real time.

print
str
print(str(42))       # "42"
print(str(3.14))     # "3.14"
print(str(True))     # "True"