-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
@Artinflamepurity
Description
class SpecialString:
def init(self, cont):
self.cont = cont
def __truediv__(self, other):
line = "=" * len(other.cont)
return "\n".join([self.cont, line, other.cont])
spam = SpecialString("spam")
hello = SpecialString("Hello world!")
print(spam / hello)
Metadata
Metadata
Assignees
Labels
No labels