I have written a program opening and reading informations from a file, saving them in different variables, so they are easier to re-use after. I make it return them after, a bit like
return (Xcoord,Ycoord,Xrotation,Yrotation)
I after want to use them in another program, so I've tried calling the first one (let it be "prog1"), and then using them, like this:
def prog2():
prog1() Xcoord.append(1)
I get a variable error, as I reference X before assignment. I've seen that I have to create a variable for my results, like x=prog1(), but what if I want to have several variables returned AND reused after?
Thanks in advance