Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI

Q&A Discussies

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
magic-methodspython
1 Stem
6 Antwoorden
5th Jul 2016, 6:57 AM
yogaocean
yogaocean - avatar
< Vorige12Volgende >
Populair vandaag
How many time I can use sololearn trial mode?
1 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Hello guys,
1 Votes
solo learn program issue - iPhone?
1 Votes
Sololearn course
1 Votes
Python
0 Votes
Bug sur le deuxième cours de python
1 Votes