Обсуждения
Hello. Python
1 голос
5 ответовКак начать понимать питон
1 голос
2 ответовWhy is answer 0112 in this code?
0 голосов
4 ответовCreating a dice game
0 голосов
3 ответовHelp me on "return"
1 голос
7 ответов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 голос
6 ответовIf problem
2 голосов
3 ответовFunction Maths
0 голосов
2 ответов[Solved] Does a class need a def?
2 голосов
3 ответовWhat is the output of this code?
0 голосов
2 ответовclass and methods
0 голосов
5 ответовAnyone please help me
1 голос
5 ответовАктуальное сегодня
Learn python
2 Votes
Help for study
1 Votes
Where's PHP and Ruby courses?
1 Votes
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
Not image in the page
0 Votes