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

HI, my code looks correct but it keeps saying incorrect please help.

Please assist

class student:
    name = 'sinazo'

You need to capitalize the 's' student.

Thank you

2 Answers

Your code is correct BUT, always remember 2 things when solving challenges or programming in general.

1) The challenges are always very sensitive, meaning if you miss a period, comma, or even if a small-case letter, it will give you an error. The best way is to run your code in the REPL if you can't figure out what is wrong with your code.

2) There are some conventions which are followed or some common naming-style rules amongst programmers like for example when naming a class it should always be CamelCase, which is the case of your problem.

class Student:  #👈 use of CamelCase for classes
    name = "sinazo"

Thank you I got it.

Names are always capitalized

Thank you