Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'"
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
3+7 =