Creating a class in python
Question
Define a class named animal with 2 attributes, “color” (brown) and "weight” (200lbs). Then, create an instance and return weight. Additionally, explain what 'self' refers to in a python class.
Define a class named animal with 2 attributes, “color” (brown) and "weight” (200lbs). Then, create an instance and return weight. Additionally, explain what 'self' refers to in a python class.