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
ABDULSALAM JAM
Courses Plus Student 156 PointsWhat is wrong with my code
class Letter: def init(self, pattern=None): self.pattern = pattern
def __str__(self):
text = []
for char in self.pattern:
if char == '.':
text.append('dot')
elif char == '_':
text.append('dash')
return "-".join(text)
class S(Letter): def init(self): self.pattern = ['.', '.', '.'] super().init(pattern)
nakalkucing
12,964 PointsYeay! :)
1 Answer
ABDULSALAM JAM
Courses Plus Student 156 Pointsthank you nakalkucing but i fix it
nakalkucing
12,964 Pointsnakalkucing
12,964 PointsHi ABDULSALAM JAM! I'd love to help. But I really can't without your full code. Would you please paste the full code here? Thanks - Nakal :)