I have to files in the same folder
First: (module1.py)
a = 2*np.pi
Second: (MainProg.py)
import numpy as np
from module1 import a
print(np.pi)
print(a)
When running MainProg.py the error tells me that name np in np.pi is not defined in module1.py. Do I have to extra import numpy as np in modul1.py?