I want to be able to use the input string as the name of an instance, how can I do that?
eg.,
class Animal:
def something():
pass
x = input() # input is "cat"
x = Animal() # create as: cat = Animal()
print(cat.something())
The reason I want to do this is because I need to find & get data from this new instance later on in the code. Instances should be in a general tree:
├── cat
│ ├── lion
│ │ ├── giraffe
│ │ └── croc
│ ├── bull
│ └── mice
│
└── dog
Thanks