Reply To: repr() , str() , eval() in python

Home Forums Python Programming repr() , str() , eval() in python Reply To: repr() , str() , eval() in python

#2106
Humble
Keymaster

repr() function can be used to convert an integer to a string..

>>> type(100)
<type 'int'>
>>> type(repr(100))
<type 'str'>
>>> repr(100)
'100'
>>>