class in py, __str__, __repr__, self etc
str and repr
In Python, __str__ and __repr__ are special methods that provide a string representation of an object. These methods are defined within a class and can be overridden to customize how an object is displayed when converted to a string.
Her...
snowcodes.hashnode.dev16 min read