actually:
class Modifier:
def modify(self, obj):
obj.value += 10
class MyObject:
def __init__(self, value):
self.value = value
def __str__(self):
return f"MyObject with value {self.value}"
# Create instances
my_obj = MyObject(5)
modifier = Modifier()...