In lesson 18. Modules

if I start by using

from math import sqrt

print sqrt(13689)

the code, as expected, works, but if I change it to

import math

print sqrt(13689)

it also works, but I think it shouldn't because in earlier lessons I was teached that when using the generic import I had to use "math.sqrt" and not just "sqrt". Is this not a bug from Codecademy on this lesson?