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 trialRoniel Flores
821 Pointsomg this is simple but can't figure it out
what am I doing wrong
class Student:
name = "Roniel Flores"
pass
me = student()
1 Answer
Steven Parker
231,275 PointsIt looks like you passed task 1.
But then...
- remember how Python uses indentation. If you indent the lines below your class, Python will think that they are supposed to be part of the class.
- you won't need to use "pass" here
- remember that Python is case sensitive — "student" is not the same thing as "Student"
- creating "me" is only part of task 2. Remember you also need to print something
Hopefully these hints will get you going again.
Roniel Flores
821 Pointsprint something? how would that show in the page?
Steven Parker
231,275 PointsThe last part of task 2 is "Then print() out the name attribute of your instance." So you would have the function name, and the argument in parentheses would be the name attribute of your new object.
Roniel Flores
821 PointsRoniel Flores
821 PointsI tried it, it does not work :/