Why class defination has "def init(self,first,last)" | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why class defination has "def init(self,first,last)"

why does the input doest consider self as first input when we provide the value for this

23rd Aug 2017, 10:59 AM
jaimit vala
jaimit vala - avatar
1 Antwort
0
you talking from python, and as far as I understood us a simple definition from the interpreter. your source file is text and it has to be parsed, so different unique constructs have to be defined to tell the interpreter what to do exactly...
23rd Aug 2017, 3:19 PM
Gunther Strauss
Gunther Strauss - avatar