Access a variable in imported module in Python
Question: I have three Python scripts: aaa.py, bbb.py and ccc.py.

bbb.py:

    
    
    import aaa as a
    

ccc.py:

    
    
    import bbb as b
    

Can I use variable `a` directly in ccc.py? Like `a.hello`?

Or can any one please tell me how to access it?


Answer: The ansewr should be yes.

    
    
    import bbb as b
    hello = b.a.hello
    

