Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
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
1 Voto
5 RespostasQuente hoje
Active NavBar
2 Votes
How to learn coding
2 Votes
My format is weird
1 Votes
How to reverse a word?
2 Votes
Ayudenme con el error
1 Votes
C++
2 Votes
Help!
0 Votes