Python Object-Oriented Python Instant Objects Your first class

Noah Tucker
Noah Tucker
41 Points

I don't understand what it means by it can't find Student when I set it to my name.

It says that it can't find Student, so I'm guessing that I need to do Student = Noa(my name) but it's not working.

first_class.py
class Student:
    name = Noah
    student = Noah

1 Answer

Mark Sebeck
MOD
Mark Sebeck
Treehouse Moderator 28,335 Points

Hi Noah. You don't need the line "student = Noah"

Just simply put your name in quotes since its a string.

Noah Tucker
Noah Tucker
41 Points

Ok thank you! I'm new with coding so I thank you for the support.

Noah Tucker
Noah Tucker
41 Points

Um... so I did what you said I literally wrote "Noah" but it still says I can't find student. Please tell me what I'm doing wrong please.

Mark Sebeck
Mark Sebeck
Treehouse Moderator 28,335 Points

Needs to be name = “Noah”. Sorry about the confusion. I went back and looked at what I wrote.