Dyskusje Q&A
Easter Eggs
1 Głos
3 odpowiedziWhy spam and eggs
5 głosów
4 odpowiedzii dont get the spam and eggs
0 głosów
3 odpowiedzican 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 Głos
6 odpowiedziPopularne dzisiaj
Python and unsigned int
0 Votes
Saturn League badge
1 Votes
Lua course?
1 Votes
certificate
1 Votes
Adding an image to my html
0 Votes
Not able to activate account
0 Votes
CSS
1 Votes
Sololearn keeps crashing
0 Votes
About Advanced Courses
0 Votes