How to get the square root of a fractions in Python

1 Answer

0 votes
from fractions import Fraction 
import math 

 
print(math.sqrt(Fraction(18, 2)))


'''
run:

3.0

'''

 



answered Apr 11, 2019 by avibootz
...