Print sqrt(25)


Before we try any fancy importing, let's see what Python already knows about square roots. On line 3 in the editor, ask Python to

print sqrt(25)
which we would expect to equal five.

Replace this line with your code. 

# Ask Python to print sqrt(25) on line 3.
def sqrt(num):
    num1 = num**0.5
    print 'sqrt(%d) = %d' %(num,num1)


You've posted some instructions and some code.

..what are we to do with that?

If there's something you want help with, then you've got to ask questions about what information you are seeking!


Oh! I think too more! The problem is so easy!
print sqrt(25)


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