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 trialTichaona KUNDODYIWA
5,124 Pointscan you assist me i dont know where i cant make it right
i tried different way still could not make it
class Student:
name = "Praise"
def good person(Praise)
print("you are a good person!")
1 Answer
Steven Parker
231,248 PointsHere's a few hints:
- to be part of the class, the method definition must be indented
- method names cannot contain spaces
- the instructions say to name the new method praise
- the conventional name for the first argument of a method is "self"
- the message must include the value of the "name" variable
- the method must return the message
- you won't need to "print" anything