I have 2 modules A and B
A
def f(x):
return x*2
B
import A
x=7
print(A.f(x))
When I run B I get error module A has no attribute f
why?
I have 2 modules A and B
A
def f(x):
return x*2
B
import A
x=7
print(A.f(x))
When I run B I get error module A has no attribute f
why?