jerry-git / jerry-git/learn-python3

I don't understand this code

Open
#42 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.