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!
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
vikas pal11,252 Points
cannot understand **kwargs
please help me, i cannot understand ** use in instances.for example
def __init__(self,**vikas): self.hit_points=random.randint(self.min_hit_points,self.max_hit_points) self.experience=random.randint(self.min_experience,self.max_experience) self.color=random.choice(colors)
and i also cannot understand self inside the bracket .why it use inside the bracket.please help