str() vs repr() functions in python 2.7.5 [duplicate]
When should i use str() and when should i use repr() ? Almost always use str() when creating output for end users. repr() is mainly useful for debugging and exploring. For example, if you suspect a string has non printing characters in it, or a float has a small rounding error, repr() will show you; … Read more