example:
class control: def __init__(self): zz = class1().parrot() c2 = class2().display_it(zz) # or you can do it this way: # def __init__(self): # zz = class1() # val = zz.parrot() # c2 = class2() # c2.display(val) class class1: def __init__(self): pass def parrot(self): return "He's Resting" class class2: def __init__(self): pass def display_it(self, what): print(what) if __name__ == '__main__': control()results:
Output:He's Resting