18. Review: Modules


#1



Hi everyone!
Any help with this would be greatly appreciated, thank you!

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


My error message is:
Oops, try again. Did you remember to print the square root of 13689?


I'm not sure why this is not working, do I have to define "sqrt"?


from math import sqrt
sqrt(13689)
print sqrt


#2

We need to assign the outcome so it can be recalled later.

my_sqrt = sqrt(13689)
print my_sqrt

Or, more directly, if you do not want to cache the value,

print sqrt(13689)

#4

Thank you so much!
This really helps :slight_smile:


#5

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