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 trialAaron Cooper
Courses Plus Student 1,123 PointsCreate class Dragon
What am I missing here? All I get is "Bummer! Try again".
from monster import Monster
class Dragon(Monster):
def __init__(self, size):
self.size = size
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Aaron,
I think all you need to do inside the class is give it a size attribute. Something like size = 10
. You don't have to override the init method.
Aaron Cooper
Courses Plus Student 1,123 PointsAaron Cooper
Courses Plus Student 1,123 PointsYes, I made it more difficult than it needed to be. Didn't think they would dumb it down so much. Thanks for your quick reply.