F&A Diskussionen
Random list magic-method
0 Stimmen
1 AntwortPlease make cource on kali lunix
0 Stimmen
1 Antwortcan 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 Stimme
6 AntwortenPlis explain the meaning of this
0 Stimmen
2 AntwortenPlease help me with __repr__
1 Stimme
1 AntwortWhats wrong with this
3 Stimmen
7 Antwortenmagic methods
0 Stimmen
2 AntwortenHelp !! Magic Methods (dunders)
2 Stimmen
3 AntwortenWhat is an r method?
3 Stimmen
3 AntwortenWhy do we override?
2 Stimmen
3 Antworten[PythonEdu] Magic method overriding
12 Stimmen
1 AntwortCan anybody give me an example?
0 Stimmen
2 Antwortenwhat is magic methods in python?
0 Stimmen
3 AntwortenHeute heiß
Ai generated practices
3 Votes
Solving coding challenges
2 Votes
Advertising in Sololearn
1 Votes
I am new
1 Votes
RUST'S FUTURE
1 Votes
Programming Language
0 Votes