Quantcast
Viewing all articles
Browse latest Browse all 1241

Python • Re: Updating imported variable-values between modules

So I´ll add something that I tried just now.

If i call the Update_Enviromental_Variables in Calculate_Module from Master_Module;

Code:

Master_Environmental_Tulip = Calculate_Module.Update_Environmental_Variables()print(Master_Environmental_Tulip)
i get updated variables, but in the Master_Module. I want them updated in the Calculate_Module.

I have tried to call the function from the Calculate_Module but as the While-Loop is in the Master_Module it never gets the new values, they stay in the return of the Update_Environmental_Variables-Function.

Is it possible to call variables from the return of a function to another function without making them global?

Statistics: Posted by Martin1234567 — Sun Jan 07, 2024 5:46 pm



Viewing all articles
Browse latest Browse all 1241

Trending Articles