Python repr() is an inbuilt function that returns a printable representation of a given object. The repr() method returns the printable representation of the given object. Here, obj is an object whose printable representation is to be printed.
It returns a string that would yield the object with the same value when passed to eval().
See the following syntax.
repr(obj)
Here, obj is an object whose printable representation is to be printed.
#python #python repr