Home › Forums › Python Programming › repr() , str() , eval() in python › Reply To: repr() , str() , eval() in python
January 13, 2014 at 6:40 am
#2106
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' >>>