0
What does 'cont' mean?
What does the expression 'cont' stand for? Is it a common abbreviation?
4 Réponses
+ 2
It's not a standard keyword. You can name it apple or house or whatever you want.
+ 1
"Const"? That would be a value that cannot be changed after its initialization. const pi = 3.1416
0
I mean as an attribute's name like here:
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
0
I wish they would have used like attribute or something instead. I feel like I need to chew some orbit after working through the last lesson