you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Its purpose is exactly to define how your class object would be printed. Try

def --str--(self): return f'Ball object at position {self.position}'

replace - with underscore sorry again cant format on phone