Whether you're a student or a professional, IDNLearn.com has answers for everyone. Find the answers you need quickly and accurately with help from our knowledgeable and dedicated community members.
Answer:
Both str () and repr () methods in python are used for string representation of a string.
Explanation:
Though they both seem to serve the same purpose, there is a little difference between them. Have you ever noticed what happens when you call a python built-in function str (x) where x is any object you want?