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 trial

Python Object-Oriented Python Instant Objects Your first class

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 37,799 Points

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

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

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

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 37,799 Points

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