Обсуждения
Random list magic-method
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 ответовPlease make cource on kali lunix
0 голосов
1 ответ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 ответовis there any wrong
0 голосов
2 ответовАктуальное сегодня
Time up code for data revision
0 Votes
Data Analysis Course
1 Votes
Web vs python
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Best Python Calculator Code
1 Votes
Animation
1 Votes