What does 'cont' mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does 'cont' mean?

What does the expression 'cont' stand for? Is it a common abbreviation?

21st Jun 2019, 9:37 AM
Annette Vogt
4 Answers
+ 2
It's not a standard keyword. You can name it apple or house or whatever you want.
21st Jun 2019, 12:04 PM
Mo Hani
Mo Hani - avatar
+ 1
"Const"? That would be a value that cannot be changed after its initialization. const pi = 3.1416
21st Jun 2019, 10:38 AM
Anna
Anna - avatar
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
21st Jun 2019, 11:52 AM
Annette Vogt
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
18th Jan 2022, 7:17 AM
Travis Beard
Travis Beard - avatar