Welcome to the Treehouse Community
Looking to learn something new?
Elizabeth McInerney3,175 Points
Object Oriented Python/Inheritance/Instance Methods
I am around 3:30 in this video, and I don't understand why he does not use self.weapon_choice in the method get_weapon(self). Instead, he just uses weapon_choice =. Could someone explain? I don't seem to get when you preceed a value with self. and when you do not.
Kenneth LoveTreehouse Guest Teacher
self is for attributes or methods of the current instance. If the variable is just used inside of a method, there's no reason to tie it to