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 trialEdmundo Aguirre
325 PointsStuck creating an instance of my class
Instructions say to create an instance of my class, which I did by naming the class followed by a dot and a unique name, which is then followed by colon and a new line with four spaces and a print function. Please help
class Student:
name = 'eddie'
Student.me:
print(name)
1 Answer
Stivan Radev
1,475 Pointsclass Student:
name = "eddie"
me = Student()
print(me.name)
Edmundo Aguirre
325 PointsThanks for the help.
Edmundo Aguirre
325 PointsEdmundo Aguirre
325 PointsWhen I try running this code it say it's not correct.