problemoccasionally the name of an attribute or method of class is only given at run time solutiongetattr(object_instancestringstring is string which contains the name of an attribute or method of class getattr(object_instancestringreturns reference to that attribute or method