repr()
: evaluatable string representation of an object (can "eval()"
it, meaning it is a string representation that evaluates to a Python
object)
In other words:
>>> x = 'foo'
>>> repr(x)
"'foo'"
Questions:
repr(x)
? (I don't get them
when I do str(x)
)'foo'
when I do eval("'foo'")
and not x which is the
object?