Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAndrew McLane
3,385 Points__init__ help
Hey - so fairly confused about the init method. It says it runs automatically without having to be called. Exactly how is it initializing the class? Confused about what that means.
Also, how do we know what arguments to put into init? Does this mean any attributes inside init will override the class attributes and then carry over into every other method?
Paul Blanche
11,788 PointsPaul Blanche
11,788 PointsI know , lets confuse the life out of everyone and introduce init , setattr within a minute of each other and not explain them throughly. ! And why not bring in **kwargs which noone understood from collections as well to really throw them off continuing with the course! So confused and I was going so well! One step forward and two steps back!