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

Roniel Flores
Roniel Flores
821 Points

I don't see anything wrong with this? please help

I cant figure out what I am doing wrong here.

first_class.py
class Student:
    name = "Roniel Flores"
    pass
    me = print ()

1 Answer

Jon Hockley
Jon Hockley
3,781 Points
# Create the Student class.
class Student:
    # Set the name attribute to your name
    name = "Roniel Flores"

# Create an instance of your new Student object and call it me.
me = Student()

# Print out your name.
print(me.name)

Might be worth going through the videos again to make sure you understand everything that is going on. Feel free to shout back!

Roniel Flores
Roniel Flores
821 Points

thank you for your help. I tried it this way, still saying it is wrong. I was hoping to see how it looks without the green text? I am probably doing something tiny thing wrong. thank you

Jon Hockley
Jon Hockley
3,781 Points

I've just put that into the challenge again and everything has gone green. Could you post what you have entered here with the code formatting?

Roniel Flores
Roniel Flores
821 Points

THank you.. it did work this time.