For example:
#mother program a = 5 import daughter1
#daughter1 program b = 6 c = a + b print c
This of course is not working, it says 'variable a is not defined' or smth like that. Is it possible somehow to use the variable a in the 2 programs?
#mother program a = 5 import daughter1
#daughter1 program b = 6 c = a + b print c
|
|
|
from __main__ import a