0
What ia the output of this?
import math print (math.sqrt (int(input())))
2 Réponses
+ 6
The output for the above code will depend upon the input you give to this program.
If the input provided is 9 then, the math.sqrt method will return the square root of 9 i.e. 3.0
If the input provided is 56, then the math.sqrt method will return 7.4833....
You can just use the Code Playground to know the output. You can ask here in the Q/A section if you don't understand the output.
+ 2
It print the square root of an integer which is entered by user.