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

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

Please assist

first_class.py
class student:
    name = 'sinazo'

You need to capitalize the 's' student.

Thank you

2 Answers

boi
boi
14,242 Points

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