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 trial

Python

Bummer: Try Again I am obviously missing something in the instructions.

It seems that I am not using python content from this lesson. Need your help please.

instances.py
class Our_List:
    #list = ["apple", 5.2, "dog", 8]
def combiner(self,list):
    def __init__(self, **kwargs):
        self.value = 0

    for key, value in list():
        setattr(self, key, value) 
        self.key = self.key.append
        self.value += self.value

    print(self.key,self.value)

1 Answer

Steven Parker
Steven Parker
231,269 Points

The challenge task is to "Create a function named combiner...", you won't need to create any class. And since it's not a method, it won't have a "self" parameter.

Another hint: an ordinary list doesn't have a "key" component, just values.