I would like to assign a variable to x, in this case a list.
A = ['a', 'b', 'c']
B = ['d', 'e', 'f']## list A and B would both be in a separate
x = A
print(importedM odule.x)
When I run it this way, the program just throws an error because x is technically still undefined in the main module, so this is psuedocode...an y ideas?
I would also like to know if the same solution to this can be used to call random/user-defined FUNCTIONS from an imported module instead of simple variables.
A = ['a', 'b', 'c']
B = ['d', 'e', 'f']## list A and B would both be in a separate
x = A
print(importedM odule.x)
When I run it this way, the program just throws an error because x is technically still undefined in the main module, so this is psuedocode...an y ideas?
I would also like to know if the same solution to this can be used to call random/user-defined FUNCTIONS from an imported module instead of simple variables.
Comment