import math
def solve_right_triangle(opposite, adjacent, use_degrees=False):
if use_degrees==False:
mytu=((opposite**2+adjacent**2)**0.5,math.atan(opposite/adjacent))
else:
mytu=((opposite**2+adjacent**2)**0.5,math.degrees(math.atan(opposite/adjacent)))
return mytu