352-9 Object-Oriented Python

I have this code

class NewList(DQ):
    def __init__(self, initial_state):
        self.data = initial_state
    def append(self, element):
        new_item = [element]
        self.data = self.data + new_item

my_list = NewList([1, 2, 3, 4, 5])

But Dataquest says:

my_list isn’t defined in your code, but we expected it to be NewList type

I don’t see any error.
Please help
Thank you!.

Your code is working fine with me.

There must have been a temporary problem with the app. Are you still stuck on this?

1 Like

Thank you Bruno!
It’s working now.
It seems it was a problem with the app.

1 Like