learn-python3
learn-python3 copied to clipboard
Jupyter notebooks for teaching/learning Python 3
Results
22
learn-python3 issues
Sort by
recently updated
recently updated
newest added
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)