Functions>18. Review of modules


#1

Cannot figure out what I'm doing wrong! My code:

from math import sqrt
def mathery():
mathery = sqrt(13689)

print mathery


#2

What are you asked to print, what do you print?

You have:

print mathery

mathery is a function, I think it's asking you to print something else


#3

from math import sqrt
print sqrt(13689)

This works. SQRT is already a function so you don't need a mathery function


#6

I did that even including the print statement it keeps on saying to print it????


#7

I had problems with this problem at first but the following one works:

from math import sqrt
sqrt (13689)
print sqrt (13689)


#8

you can try this code:

from math import sqrt
sqrt (13689)
print sqrt (13689)


#9

This did work for me, but I feel like I still don't understand why..

My code before was this:
from math import sqrt
return sqrt(13689)
print sqrt(13689)

I had understood from the previous lessons that when it says to "call" something, that typically means to use the "return" command. Is that not correct?


#10

I did the same thing... Did you ever find out about this?


#14