SyntaxFix
Write A Post
Hire A Developer
Questions
You can just set it to a class variable and read it from the main program:
class Foo: def __init__(self): #Do your stuff here self.returncode = 42 bar = Foo() baz = bar.returncode