Hi I want to define an object value as a sum of values of two objects of the same class before I know what the value of those 2 objects is. I need to do something like:
`A=: B+C
B=10
C=20
print A`
I have a class Set and I'm trying something like:
class Set(object):
def __init__(self, w):
self.value=w
a=Set
c=a
a(10)
print c
But c is still class instead of object instance. Can somebody help me?