Cannot figure out what I’m doing wrong! My code:
from math import sqrt
def mathery():
mathery = sqrt(13689)
print mathery
Cannot figure out what I’m doing wrong! My code:
from math import sqrt
def mathery():
mathery = sqrt(13689)
print mathery
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
from math import sqrt
print sqrt(13689)
This works. SQRT is already a function so you don’t need a mathery function
I did that even including the print statement it keeps on saying to print it???
I had problems with this problem at first but the following one works:
from math import sqrt
sqrt (13689)
print sqrt (13689)
you can try this code:
from math import sqrt
sqrt (13689)
print sqrt (13689)
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?
I did the same thing… Did you ever find out about this?