Обсуждения
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 ответовАктуальное сегодня
Functions in python
2 Votes
How to make a playground
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
Python
0 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes