Compile error yet correct


#1


7 I Know Kung Fu

Traceback (most recent call last):
File "python", line 3, in
NameError: name 'sqrt' is not defined

Display sqrt of 25


Replace this line with your code. 

# Ask Python to print sqrt(25) on line 3.

print sqrt(25)


#2

Hi @xylust ,

Yes, the error, below, is deliberate, and this exercise is designed to support what is covered in the upcoming exercises, which will address the issue that raised the error.

Traceback (most recent call last):
File "python", line 2, in
NameError: name 'sqrt' is not defined

The code that you submitted for this exercise is what is expected.


#3

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