Not able to identify problem in code


I don't get any error but the following output

square root of 13689 is 117.000000

I also am not able to move to next exercise and I get a warning

Oops, try again. Did you remember to print the square root of 13689?

from math import sqrt
print "square root of 13689 is %f" % sqrt(13689)


you dont have to print all that stuff! (just square root of 13689)
Just delete "square root of 13689 is %f" and print square root?


I now get following error:

File "python", line 2
print % sqrt(13689)
SyntaxError: invalid syntax

For the code below

from math import sqrt
print % sqrt(13689)


what % doing there ?


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