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 trialSinazo Nongena
2,517 PointsHI, my code looks correct but it keeps saying incorrect please help.
Please assist
class student:
name = 'sinazo'
Sinazo Nongena
2,517 PointsThank you
2 Answers
boi
14,242 PointsYour 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"
Sinazo Nongena
2,517 PointsThank you I got it.
Henry Powell
3,426 PointsNames are always capitalized
Sinazo Nongena
2,517 PointsThank you
dkrull
Python Development Techdegree Student 1,599 Pointsdkrull
Python Development Techdegree Student 1,599 PointsYou need to capitalize the 's' student.