On Thu, Aug 13, 2015 at 9:06 PM, Dwight GoldWinde wrote:
> global subwordsDL
> from Functions import subwords
> subwords ()
> print (subwordsDL)
> print (subwordsDL['enjoy'][2])
In Python, "global" means module-level. The easiest way to do this
would be to import the Functions module directly (ra
Inside of Functions.py I define the function:
def subwords ():
global subwordsDL
subwordsDL = {'enjoy':['like', 'appreciate', 'love', 'savor'],
'hurt':['damage', 'suffering']}
print (subwordsDL)
Return
In my test code module, the code is:
global subwordsDL
from Functions import subwords
subwords