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

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

objectoriented-python-2/instant-objects/your-first-cla

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

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

1 Answer

Steven Parker
Steven Parker
231,236 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).