Обсуждения
Random list magic-method
0 голосов
1 ответPlease make cource on kali lunix
0 голосов
1 ответcan someone help..
what does this code means so it could have the output like on the example..
class SpecialString:
def __init__(self, cont):
self.cont = cont
def __gt__(self, other):
for index in range(len(other.cont)+1):
result = other.cont[:index] + ">" + self.cont
result += ">" + other.cont[index:]
print(result)
spam = SpecialString("spam")
eggs = SpecialString("eggs")
spam > eggs
1 голос
6 ответовPlis explain the meaning of this
0 голосов
2 ответовPlease help me with __repr__
1 голос
1 ответWhat is used to create instance of class
-3 голосов
1 ответWhats wrong with this
3 голосов
7 ответовmagic methods
0 голосов
2 ответовTrouble understanding magic methods
3 голосов
3 ответовWhat does self , other ): mean ???
2 голосов
4 ответовHelp !! Magic Methods (dunders)
2 голосов
3 ответовWhat is an r method?
3 голосов
3 ответовWhy do we override?
2 голосов
3 ответов[PythonEdu] Magic method overriding
12 голосов
1 ответCan anybody give me an example?
0 голосов
2 ответовPlease explain the following code.
0 голосов
3 ответовwhat is magic methods in python?
0 голосов
3 ответовАктуальное сегодня
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes
Popsacles Aufgabe
1 Votes