While using classes...is it necesary that we start with the __init__ method or can we jst start with a function other than init? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

While using classes...is it necesary that we start with the __init__ method or can we jst start with a function other than init?

Here i startrd with a charector function..and its saying it aint defined...but y? https://code.sololearn.com/ci68mU1wGKr4/?ref=app

18th Aug 2019, 5:45 AM
Y AD Ù
Y AD Ù - avatar
2 Antworten
+ 1
show us your code so we can try to figure out why it is not defined
18th Aug 2019, 8:21 AM
Helena
Helena - avatar
0
Helena i jst did...can u pls tell me
18th Aug 2019, 9:11 AM
Y AD Ù
Y AD Ù - avatar