Forum Discussion
tristaanogre
Esteemed Contributor
I'm not too familiar with Python... however, if it is like most languages, a variable inside a function is scoped within the function. Even using the unit in an item her unit won't expose it. If you want that variable accessible to other units, it needs to be declared in a scope that is on the unit level, not within a function.
Viji123
8 years agoOccasional Contributor
For example this is the scenario :
file1 has the variables x1 and x2 how to pass them to file2 ?
How can I import all of the variables from one to another?
In python we have the below command
from file1 import *
This will import all objects and methods from file1. In spite of using this , am not able to access the variables of file1 in file 2
Related Content
Recent Discussions
- 3 hours agomarkos