import math then math.sqrt, (2) from math import floor used bare, (3) import math as m with m.ceil. Write three_ways(x) returning the tuple (math.sqrt(x), floor(x), m.ceil(x)) with all three imports present.three_ways(6.5)
(2.5495097567963922, 6, 7)
sqrt via module access, floor via from-import, ceil via alias.
Multiple imports of the same module are cheap — it is cached.
The alias m and name math refer to the same module object.