How to find square root of a number in Python

3 Answers

0 votes
import math

print(math.sqrt(16))



 
'''
run:
  
4.0
   
'''

 



answered Apr 21, 2021 by avibootz
0 votes
import math

print(pow(16, 0.5))




 
'''
run:
  
4.0
   
'''

 



answered Apr 21, 2021 by avibootz
0 votes
print(16 ** 0.5)




 
'''
run:
  
4.0
   
'''

 



answered Apr 21, 2021 by avibootz
edited Apr 21, 2021 by avibootz
...