please explain this code | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

please explain this code

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)

25th Aug 2022, 6:30 PM
Sojib Mia
Sojib Mia - avatar
0 Réponse