Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
Easter Eggs
1 Voto
3 RespostasWhy spam and eggs
5 Votos
4 Respostascan 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 Voto
5 RespostasQuente hoje
Questions
1 Votes
Why it's giving error
3 Votes
Questions
0 Votes
xampp
0 Votes
Collection
0 Votes
Code Playground
0 Votes
How to solve this
0 Votes