I have two documents, I want to import a variable from my main one into the other one but when I try this pops up
ImportError: cannot import name 'numb'
I have successfully transferred variables from the auxiliary one to the main one but cannot do it the other way round and do not know why.
This is the code, in case I am doing something wrong.
The main one (code.py):
import second
numb = [25,45,48,56,25]
choice = str(input("Choice"))
if choice == "a" :
second.test()
The second one (second.py):
def test():
import code
from code import numb