Hi, I'm on Lecture 11. Can anyone explain a little about _init_(self) for me? Thanks
It is a class constructor. In short, the way to get an object built when it is called. http://www.tutorialspoint.com/python/python_classes_objects.htm http://www.diveintopython.net/object_oriented_framework/defining_classes.html
when a class object is instantiated the __init__ method is called. http://docs.python.org/2/reference/datamodel.html#object.__init__ http://effbot.org/pyref/__init__.htm 9.3.2 of http://docs.python.org/2/tutorial/classes.html#classes but it is probably worthwhile to start at the beginning of section 9
thanks a lot... started going through the pages
Join our real-time social learning platform and learn together with your friends!