Home >>Python Built-in Functions >Python repr() Function
Python repr() function is used to get the string representation of the given input object. It calculates the "official" string representation of an object.
Syntax:repr(obj)
Parameter | Description |
---|---|
Obj | This parameter defines the given input object. |
s = 'PHPTPOINT'
print repr(s)
print repr(5/11)