repr It returns the string wrapped with ('). >>> a = "Life is too short" >>> str(a) 'Life is too short' >>> repr(a) "'Life is too short'" >>> import datetime >>> a = datetime.datetime(2017, 9, 27) >>> str(a) '2017-09-27 00:00:00' >>> repr(a) 'datetime.datetime(2017, 9, 27, 0, 0)' str repr -human-readable -informal -called by the built-in print(), str() -intended for users -more information-rich ..