The following are links to additional questions that our community has asked about this exercise:
This list will contain other frequently asked questions that aren’t quite as popular as the ones above.
Currently there have not been enough questions asked and answered about this exercise to populate this FAQ section.
This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!
Not seeing your question? It may still have been asked before – try searching for it by clicking the spyglass icon () in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post ().
The first example declares is_alive as a class variable that can be accessed without creating an instance.
Animal.is_alive
The second example declares it as an instance variable which can only be accessed on an instance.
elephant = Animal('Jumbo', 60)
elephant.is_alive
Note that every instance can access the class variable (in the first example) with self.is_alive, and can modify it on that instance, which overrides the class variable fixed value.