Python Programming Tutorial - 33 - Classes and Self
Top Comments
All Comments (162)
-
for some reason keep getting this
AttributeError: cn instance has no attribute 'dn' please help
-
I hope no one sees me watching this... -.-
-
@Nikotiini69 Same with cvs333. I don't get it; what is the purpose of classes? What do they do?
-
@cvs333 Why are you confused? It is quite clear I think. Rewatch and try it out couple of times. It's really easy.
-
Python 3 adds (self) automatically so it's just funny how he stresses the importance of it :) This is the case atleast on Eclipse with Pydev.
-
great tutorial! makes me less intimidated to try to program in object oriented after getting so used to structured programming.
-
This is the first time I've been really confused in python.
-
@ all the people who have been having the problem when they get to first.displayname() after you enter self.name=name, when your creating the class, when you return hit your left direction arrow and it will align the methods your making and should fix your problem if this makes sense and fixes your problem thumbs up so others can see
-
@TheNanoStuff I got the same problem, the problem is you're not putting in the empty (), hope this helps!
-
make sure you have ' name = "" ' after the 'class className:' statement
This should be a TV show;
PROGRAMMING IN PLAIN ENGLISH!
xero907 1 year ago 79
let me resay that. If you have power over the computer, you can make ANYTHING and i mean ABSOLUTELY ANYTHING possible in the little dream world i like to call the virtual space that is not really existant but changes lives. If anyone understands that, give it a thumbs up lol.
louisrocks40 8 months ago 56