why we have to add import math when print math.sqrt(25) will give the same result?
If you can do that then you have already imported math!
The way exercises work here, the sessions do not restart every time you submit, rather, you just add or overwrite to what's already there.
You can reset the session by refreshing the page
ya I tested It again and it does not work thanks!
why does it print the square root then ask me if i forgot to put print in the script when it worked! idk what to change.
nevermind wrong line
Python doesn't know what square roots are so you have to import
math. This allows you to import variables and functions and guess what, sqrt is one of those function that
Did you see that? Python said: "NameError: name 'sqrt' is not defined." Python doesn't know what square roots are—yet.
from math import sqrt