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ร
Functions in python
2 Votes
Html 5 document question
1 Votes
Python
0 Votes
Actual Artificial Intelligence
0 Votes
Is this realistic enough?
1 Votes
Need friends
0 Votes