Basically I have a application that sends a value to another function(located in another file) and I want other functions(within that file) to have access(if it matters, its read access) to that variable.
For example:
def function1(pricelist):
#do something
.... other functions
def fucntion200():
#Does something else but needs to refer to that pricelist that was provided to function1
I tried doing a pricelist = pricelist in function1 so maybe if I declare it in the file it'll be avail, but that didn't work and when I make it global I get an error saying its local and global.
I have read: Using global variables in a function other than the one that created them and don't think it fully applies(or I have so far been unable to).
Any ideas?
Thanks!