Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

__str__python

The __str__ method in Python represents the class objects as a string – it can be used for classes. 
This method is called when print() or str() function is invoked on an object. This method must return the String object.
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+8 =