Dyskusje Q&A
Hello. Python
1 Głos
5 odpowiedziCreating a dice game
0 głosów
3 odpowiedziHelp me on "return"
1 Głos
7 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 odpowiedziIf problem
2 głosów
3 odpowiedziFunction Maths
0 głosów
2 odpowiedziclass and methods
0 głosów
5 odpowiedziPopularne dzisiaj
Where is the bug?
1 Votes
im beginner
0 Votes
Active learner
0 Votes
finding my compiler path
0 Votes