import math m = math def fromModule(mod): fun = mod.sqrt return fun s = fromModule(m) print(s(4))