Add the str() and repr() methods to the Device classes to make it easier to print and show these objects.
Example:
def __str__(self):
object_type = str(type(self))
return object_type + ": This is a Contact Device str."
def __repr__(self):
object_type = str(type(self))
return object_type + ": This is a Contact Device repr."
Add the str() and repr() methods to the Device classes to make it easier to print and show these objects.
Example: