python override to string code example Example: override to string python def __str__(self): return "foo"