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 trialAtang Lekang
2,509 PointsHow do i make an instance of the following code
Now, make an instance of your class named me.
Then print() out the name attribute of your instance.
class Student:
name="Atty"
2 Answers
Josh Klink
2,330 PointsThis works for me, but if you have any questions feel free to ask.
class Student:
name = 'YOUR NAME'
me = Student()
print(me.name)
Josh Klink
2,330 PointsIt works for me. If you haven't tried my code, try it. But report a bug to this email help@teamtreehouse.com
Atang Lekang
2,509 PointsAtang Lekang
2,509 PointsI think Tree house system has a bug this code is failing to work and please may you check your systems.
Tamara Orujzade
1,139 PointsTamara Orujzade
1,139 PointsYes, it works. But the first three lessons remained vague for me. I'd expected clearer explanations.