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 trialDarnell Glenn
1,435 PointsI have no idea what I'm doing wrong!
what am I doing wrong? I assigned the method with the attribute being that name that's called, yet the program says I didn't do it right.
class Student:
name = "Darnell"
def praise(self):
return print("You're doing a great job, {}".format(self.name))
Student().raise()
1 Answer
Scott Bailey
13,190 PointsOn the return you don't need the print method - it's only asking for you to return the message (string).
Removing the print part and the call you make at the bottom (Student().raise()) will pass the challenge.