First I have to say that I'm not a professional python programmer,
so I might ask some really stupid questions, please bear with me...
Here is the idea:
class Foo:
def __init__(self):
self.myValue = ''
def function1(self, something):
self.myValue = something
def function2(self):
print self.myValue
foo = Foo()
foo.function1("target") --> I want to store the value "target" in the class and use it later
foo.function2() --> I want to print out "target"
Obviously, this is really wrong, but I don't know how how to correct it.
If you can give me some directions, I'll really appreciate it!