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.

Python repr()

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

Python repr() Function Example Tutorial
1.50 GEEK