Welcome to the Treehouse Community
Looking to learn something new?
Prem Yadav7,346 Points
Not able to solve this problem.....
Hi there In this problem i'm understanding where is my mistake please help as soon as possible.....
class Student: name = "PreM" from characters import Student me = Student() me.name
Jennifer NordellTreehouse Teacher
Hi there! You're doing fairly well, but there's no need to import anything. Also it asks you to print the name of the new student you made. You've typed
me.name but that doesn't do anything by itself. It either needs to be assigned to a variable or displayed in some way. I've altered your code slightly and included comments. Take a look:
class Student: #create a new class named Student name = "PreM" #set the name property to your name me = Student() #create a new instance of Student and assign it to a variable print(me.name) #print the student's name
Hope this helps!