Apr-18-2020, 05:34 PM
(This post was last modified: Apr-18-2020, 05:35 PM by michael1789.)
My first thought is to have a single class (Animal) and a single input function. If all the different types of information and inputs can be stored in dictionaries thus:
nutrition = {1 : "Carnivorous", 2 : "Herbivorous", 3 : "Omnivorous", 4 : "No Information", input_text : """Please Enter Nutrition Type 1. Carnivorous 2. Herbivorous 3. Omnivorous 4. No Information"""}Then if you put all those dictionaries in to another one (eg, Animal.info_dict) then you can have all these inputs as part of the __init__ for the single animal class.