Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
Random list magic-method
0 голосов
1 ответPlease make cource on kali lunix
0 голосов
1 ответPlis explain the meaning of this
0 голосов
2 ответовPlease help me with __repr__
1 голос
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 голос
5 ответов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 ответовАктуальное сегодня
Media on HTML
0 Votes
Is Sololearn better or Mimo.org?
2 Votes
How to cast in python
0 Votes
How to show img???
0 Votes
Python
0 Votes
Java project
0 Votes
Jungle capming
0 Votes
JavaScript
0 Votes
Editor HTML
0 Votes