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

Daniel Fragoso
Daniel Fragoso
5,333 Points

"Bummer! Be sure to use `me.name` to print the attribute!", isn't that what I'm doing?

Can someone help me out with this? I really don't get what I'm doing wrong.

first_class.py
class Student:
    name = "Dan"

me=Student()
print (me.name)

1 Answer

Hey Daniel,

You'll wanna get rid of that space after "print." You should be able to pass the Challenge as soon as you fix that.

Daniel Fragoso
Daniel Fragoso
5,333 Points

Thanks, that worked! I did it with the space in Workspaces and it worked though.

Hmm. Weird. Maybe a bug in Workspaces. You'll want to pay special attention to your whitespacing in Python, though. Unlike other languages — like JavaScript — whitespace has a functional value in Python.