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 Basic Object-Oriented Python Welcome to OOP Classes, Attributes, and Methods

Report Question - my answer should have been correct

My answer is self.stop() to call stop method inside another method within the same class in python script . But it is wrong i don't think so that i am wrong , may be question right answer was wrong in real that's why it didn't taking my one as right answer. Thanks

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

Hey Kushal Khemka, you are correct! self.stop() is the correct answer.

It needs to be entered in two parts:

self and stop()

The period between them is provided by the question. The entries accepted must be precise (that is, the checker is picky)

Post back if you need more help. Good luck!!!