Answers for "what does the repr function return in python"

6

python repr

# The repr() function returns a printable representational string of the given object.
>>> var = 'foo'
>>> print(repr(var))
"'foo'"
Posted by: Guest on March-26-2020

Code answers related to "what does the repr function return in python"

Python Answers by Framework

Browse Popular Code Answers by Language