jerry-git / jerry-git/learn-python3
I don't understand this code
Open
- Dominant language
- HTML
- Stars
- 6.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
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)
Contributor guide
Assessment
This issue has not been assessed yet.