Can any one explain repr and str methods in python where do we use them in practical examples? I understand that str and repr returns the string representation of an object. But why would we need them?
Asked
Active
Viewed 73 times
0
-
yes, but i didn't understand the concept clearly with the answers – HariReddy Konatham Sep 13 '15 at 06:23
-
1If there is something you don't understand in the dozens of obvious Google hits, including at least half a dozen on Stack Overflow, please ask a specific question about that detail, instead if posting yet another duplicate. Otherwise, how would you be able to understand the answers to your own question? – tripleee Sep 13 '15 at 08:28