I\'m trying to create a game for my little sister. It is a Virtual Pet sort of thing and the Pet has toys to play with.
I created a class Toy and want t
Toy
I think you can use eval. Something like this
eval
def toclass(strcls): return eval(strcls)()