Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Instant Objects Your first class

Manuel Canario
Manuel Canario
1,458 Points

What I'm I doing wrong the program still tells me that it can not find Student() As if it was a new variable I created


class Student: name = "Manuel" me = Student() Print(me.name)

class Student:
    name = "Manuel"
me = Student()

1 Answer

Steven Parker
Steven Parker
211,043 Points

The error message is bizarre! But the actual issue is that Python language is case-sensitive, and most keywords are all lower-case.

So instead of "Print" (with a capital "P"), it should be "print" (lower case).