replit python code example
Example 1: python repr
# The repr() function returns a printable representational string of the given object.
>>> var = 'foo'
>>> print(repr(var))
"'foo'"
Example 2: online python compiler
Use this site
https://repl.it/languages/python3
Example 3: repr() in python
#The repr() function returns a printable representation of the given object.
#repr() takes a single object.
#Syntax
val = "string"
print(repr(val)) #output ---->"'string'"