Not able to identify problem in code


#1


https://www.codecademy.com/courses/python-beginner-c7VZg/4/2?curriculum_id=4f89dab3d788890003000096#

I don't get any error but the following output

square root of 13689 is 117.000000
None

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)


#2

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


#3

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)


#4

what % doing there ?


#5

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