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 trialMarek Ostrowski
16,268 PointsCouldn't find `me` It seems my code do not use class "me" Any Hint please?
Hi
there is something wrong with my code, Can some one explain how class "me" should be used in this task?
class Student:
name = "Marek"
def me(name):
print(Student.name)
Marek = Student()
Marek.me()
1 Answer
Steven Parker
231,248 PointsThe instructions say: "Now, make an instance of your class named me. Then print() out the name attribute of your instance."
Making an instance of the class is something you do outside of the class definition. And you won't be creating any methods for this challenge.