Q&A Discussies
Random list magic-method
0 Stemmen
1 AntwoordPlease make cource on kali lunix
0 Stemmen
1 Antwoordcan 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 Stem
6 AntwoordenPlis explain the meaning of this
0 Stemmen
2 AntwoordenNeed help
1 Stem
1 AntwoordNeed help
0 Stemmen
1 AntwoordWhats wrong with this
3 Stemmen
7 Antwoordenmagic methods
0 Stemmen
2 AntwoordenHelp !! Magic Methods (dunders)
2 Stemmen
3 AntwoordenWhat is an r method?
3 Stemmen
3 AntwoordenWhy do we override?
2 Stemmen
3 Antwoorden[PythonEdu] Magic method overriding
12 Stemmen
1 AntwoordCan anybody give me an example?
0 Stemmen
2 Antwoordenwhat is magic methods in python?
0 Stemmen
3 AntwoordenPopulair vandaag
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
How can i isntall modules
1 Votes