Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

We're playing a popular board game about snatching up real estate in Atlantic City. I need you finish out the Capitalism

please help me in this one l stuck

from dice import D6

class Hand(list): def init(self, size=2, die_class=D6, *args, **kwargs): if not die_class: raise ValueError("You must provide a die class") super().init()

    for _ in range(size):
        self.append(die_class())
    self.sort()

def _by_value(self, value):
    dice = []
    for die in self:
        if die == value:
            dice.append(die)
    return dice

i have changed size to 2 and die_class to D6

1 Answer

nakalkucing
nakalkucing
12,964 Points

Hey, I'd love to help. Could you please include your code? :)