self.full = name + version and
self.full = self.name + self.version will accomplish the same thing and result in
self.full being assigned
version are passed to the
__init__ method when first creating an object of the
Robot class, meaning that, if you define
self.full inside the
__init__ method, you use
self.full = name + version.
However, if you defined
self.full outside of the
__init__ method, you would have to use
version cannot be accessed outside of that method. Using
self.full = self.name + self.version in this case also results in
self.name being assigned
"Benderv2". This is because
self.name was assigned the value of
self.version was assigned the value of
version in the
Please format your code according to this post.
Welcome to the Codecademy Forums!