Q&A Discussies
Easter Eggs
1 Stem
3 AntwoordenEaster eggs (Phyton) HELPPPPP
2 Stemmen
5 AntwoordenWhy spam and eggs
5 Stemmen
4 AntwoordenWhy did eggs change in value?
2 Stemmen
6 Antwoordeni dont get the spam and eggs
0 Stemmen
3 Antwoordencan 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 AntwoordenPopulair vandaag
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes
Coding for Cybersecurity
0 Votes