>>> str(42)
'42'
>>> int('42')
42
Links to the documentation:
int()
str()
str(x)
converts any object x
to a string by calling x.__str__()
.
>>> str(42)
'42'
>>> int('42')
42
Links to the documentation:
int()
str()
str(x)
converts any object x
to a string by calling x.__str__()
.