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

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? :)