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 trialEli Noto
679 PointsI'm stuck... no idea what to do and i've watched the video a number of times.
no idea
class Student:
name = "Eli"
Student.name = me
print(name)
1 Answer
Frank Campos
4,175 Pointsclass Student:
name = "Eli"
#just imagine that you are in the python interpreter
#first you have to create an instance of the class Student like this
me = Student()
#now you have an instance of the class Student.
#you can assess to its attribute with the syntax dot(.)
print(me.name)