Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

Can anyone please help me understand what the _init_ method does from lecture 11?

OpenStudy (anonymous):

http://docs.python.org/2.7/reference/datamodel.html#object.__init__ when you make an instance of a class: instance = Class(args) the __init__ method is run. any setup code or processing you need to do for your object when it is first created should be in this method http://dpaste.com/1070592/

OpenStudy (rsmith6559):

The __init__() method is automatically run. You don't need to call it.

OpenStudy (anonymous):

Thanks.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!