Next / Previous / Contents / TCC Help System / NM Tech homepage

13.35. str(): Convert to str type

To convert any value x to a string, use this general form:

str(x)

For example:

>>> str(17)
'17'
>>> str({'boy': 'Relmond', 'girl': 'Wirdley'})
"{'boy': 'Relmond', 'girl': 'Wirdley'}"