This code does not work, why? Can you please help...?


#1

import sqrt from math
print math.sqrt(25)


#2

You have your first line the wrong way round. The from statement comes before the import.


#3

the code should be
from math import sqrt


#4

Thanks Guys.It is working right now...


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.