Hi I'm confused by importing functions form another .py file
My question is this
I made two .py files
First one named qq.py
def bb(x):
x = aa(x)
return x+3
def aa(x):
return x+ 6
Second one named test.py
from qq import bb
print(bb(10))
*add comment : test.py
worked
I thought that test.py
wouldn't work.
Because function bb
requires function aa
and function aa
didn't imported
Why this worked?
Thank you.