Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python __repr__ meaning

>>>x=4
>>>repr(x)
'4'
>>>str(x)
'4'
>>>y='stringy'
>>>repr(y)
"'stringy'"
>>>str(y)
'stringy'
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #python #meaning
ADD COMMENT
Topic
Name
7+5 =