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 trialLuis Barahona
4,529 PointsWhat am i doing wrong, can someone help me understand this challenge?
Please help me, I'm stuck! - What am I missing?
class Student:
name = "Luigi"
def praise(self):
print("You're doing a great job, Jacinta!")
1 Answer
Steven Parker
231,275 PointsThere are a few issues:
- the entire method definition is indented one stop too far
- the instructions say "The method should return a positive message" but it is being "printed" here instead
- the instructions also say the message "... includes the name attribute." but that still needs to be added
Including the name attribute means using the variable and combining it with the message using formatting or concatenation.