If I have the following code:
class foo:
    def __init__(self):
        self.w = 5
        self.z = 10
def sum(obj,x,y):
    return obj.x+obj.y
f = foo()
print sum(foo,'x','y')
How would I create a function that takes in two unkown variable names and returns the sum of those variables variables?
In this case the example should print 15. EDIT: Typo for the last line it should say print sum(foo,'w','z')
