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 trialjosiah dubose
2,525 PointsCreate a class w/method challenge
link to challenge: https://teamtreehouse.com/library/objectoriented-python/objects/create-a-class-with-a-method
This challenge won't let me pass. Here's my code:
Any input is greatly appreciated.
2 Answers
Steven Parker
230,942 PointsIt looks like you posted the same question twice. I just answered the other one.
But to recap, your function should only take one argument, self. Then inside the function, you will need to use "self." to prefix the variable names.
Fix that and you should be good!
For future reference, screenshots are not nearly as helpful as actual code. Inside a challenge the "Get Help" button will usually provide the code (properly blockquoted!) along with a link to the challenge for you.
josiah dubose
2,525 PointsYeah I was trying to figure out how to post a screen shot of my code. Sorry about the duplicate. Thanks for your quick response