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 Object-Oriented Python Advanced Objects Emulating Built-ins

where is item.py in the workplace? It is not exist

There is no item.py file in the workplace? can anybody help.....

4 Answers

Did Kenneth intentionally make stuff difficult for us? Why do we have to do this?

You need to download the zip file and upload to the workspace. It is in the folder: sv3v4

here is the code if you need it. just copy and paste to the workspace:

          <p>This is code!</p>

class Item:
    def __init__(self, name, description):
        self.name = name
        self.description = description

    def __str__(self):
        return '{}: {}'.format(self.name, self.description)


class Weapon(Item):
    def __init__(self, name, description, power):
        super().__init__(name, description)
        self.power = power


'''

Thank you, Michael Sorell

Angela Huffman
PLUS
Angela Huffman
Courses Plus Student 10,177 Points

Seems like this should have been explicitly covered in the video rather than just starting with a workspace in the video that doesn't match what students have and then expecting us to figure it out.